mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Added explicit close to Windows Dispatcher
This commit is contained in:
		
							parent
							
								
									801cb3d752
								
							
						
					
					
						commit
						7e0648bef9
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -1968,6 +1968,13 @@ function onTcpRelayServerTunnelData(data) { | |||
| 
 | ||||
| function onTunnelClosed() | ||||
| { | ||||
|     if (this.httprequest._dispatcher != null && this.httprequest.term == null) | ||||
|     { | ||||
|         // Windows Dispatcher was created to spawn a child connection, but the child didn't connect yet, so we have to shutdown the dispatcher, otherwise the child may end up hanging
 | ||||
|         if (this.httprequest._dispatcher.close) { this.httprequest._dispatcher.close(); } | ||||
|         this.httprequest._dispatcher = null; | ||||
|     } | ||||
| 
 | ||||
|     if (this.tunnel) | ||||
|     { | ||||
|         if (tunnels[this.httprequest.index] == null) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue