Fixed realtime.js finishConnection user might be undefined issue
This commit is contained in:
		
							parent
							
								
									fa5485c185
								
							
						
					
					
						commit
						d3a23ad72f
					
				| @ -268,6 +268,7 @@ var isDisconnectBusy = false; | |||||||
| var disconnectSocketQueue = []; | var disconnectSocketQueue = []; | ||||||
| 
 | 
 | ||||||
| function finishConnection(socket, note, user) { | function finishConnection(socket, note, user) { | ||||||
|  |     if (!socket || !note || !user) return; | ||||||
|     note.users[socket.id] = user; |     note.users[socket.id] = user; | ||||||
|     note.socks.push(socket); |     note.socks.push(socket); | ||||||
|     note.server.addClient(socket); |     note.server.addClient(socket); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user