mirror of
				https://github.com/bra1n/townsquare.git
				synced 2025-10-21 16:55:12 +00:00 
			
		
		
		
	fixed ping timer bug
This commit is contained in:
		
							parent
							
								
									76a4b84000
								
							
						
					
					
						commit
						9f1fb223da
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -282,7 +282,7 @@ class LiveSession { | ||||||
|     this._players[playerId] = now; |     this._players[playerId] = now; | ||||||
|     // remove players that haven't sent a ping in twice the timespan
 |     // remove players that haven't sent a ping in twice the timespan
 | ||||||
|     for (let player in this._players) { |     for (let player in this._players) { | ||||||
|       if (now - this._players[player] > this._pingTimer * 2) { |       if (now - this._players[player] > this._pingInterval * 2) { | ||||||
|         delete this._players[player]; |         delete this._players[player]; | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue