mirror of
				https://github.com/JKorf/CryptoExchange.Net
				synced 2025-10-28 00:48:40 +00:00 
			
		
		
		
	Fixed socket getting disconnected when no data timeout reached instead of being reconnected
This commit is contained in:
		
							parent
							
								
									9f0654815d
								
							
						
					
					
						commit
						5bcf50fb4d
					
				| @ -660,7 +660,7 @@ namespace CryptoExchange.Net.Sockets | |||||||
|                     if (DateTime.UtcNow - LastActionTime > Parameters.Timeout) |                     if (DateTime.UtcNow - LastActionTime > Parameters.Timeout) | ||||||
|                     { |                     { | ||||||
|                         _log.Write(LogLevel.Warning, $"Socket {Id} No data received for {Parameters.Timeout}, reconnecting socket"); |                         _log.Write(LogLevel.Warning, $"Socket {Id} No data received for {Parameters.Timeout}, reconnecting socket"); | ||||||
|                         _ = CloseAsync().ConfigureAwait(false); |                         _ = ReconnectAsync().ConfigureAwait(false); | ||||||
|                         return; |                         return; | ||||||
|                     } |                     } | ||||||
|                     try |                     try | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user