fix: critical memory leak.
This commit is contained in:
		
							parent
							
								
									178093861b
								
							
						
					
					
						commit
						43a7eb233c
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -35,6 +35,7 @@ export default function() {
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
		ev.emit('serverStats', stats);
 | 
							ev.emit('serverStats', stats);
 | 
				
			||||||
		log.push(stats);
 | 
							log.push(stats);
 | 
				
			||||||
 | 
							if (log.length > 50) log.shift();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	tick();
 | 
						tick();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue