mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-10-31 16:01:34 +00:00 
			
		
		
		
	AsyncQueue Fix
This commit is contained in:
		| @@ -389,15 +389,24 @@ namespace Esyur.Net.Sockets | ||||
|                     } | ||||
|                     catch (Exception ex) | ||||
|                     { | ||||
|                         kv.Key.Trigger(false); | ||||
|                         asyncSending = false; | ||||
|  | ||||
|                         if (state != SocketState.Closed && !sock.Connected) | ||||
|                         try | ||||
|                         { | ||||
|                             state = SocketState.Terminated; | ||||
|                             Close(); | ||||
|                             kv.Key.Trigger(false); | ||||
|  | ||||
|                             if (state != SocketState.Closed && !sock.Connected) | ||||
|                             { | ||||
|                                 state = SocketState.Terminated; | ||||
|                                 Close(); | ||||
|                             } | ||||
|                         } | ||||
|                         catch (Exception ex2) | ||||
|                         { | ||||
|                             Console.WriteLine("Level 2 {0}", ex2); | ||||
|                         } | ||||
|  | ||||
|                         asyncSending = false; | ||||
|  | ||||
|  | ||||
|                         Global.Log("TCPSocket", LogType.Error, ex.ToString()); | ||||
|                     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user