From 438554e1ab1a54b717cb167f176f4319c4fc185b Mon Sep 17 00:00:00 2001 From: j-berman Date: Fri, 9 Jun 2023 21:11:13 +0200 Subject: properly terminate interrupted TCP connection. fixes #8685 --- contrib/epee/include/net/abstract_tcp_server2.inl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'contrib') diff --git a/contrib/epee/include/net/abstract_tcp_server2.inl b/contrib/epee/include/net/abstract_tcp_server2.inl index 81aa725d1..d88f18194 100644 --- a/contrib/epee/include/net/abstract_tcp_server2.inl +++ b/contrib/epee/include/net/abstract_tcp_server2.inl @@ -583,11 +583,8 @@ namespace net_utils break; } } - else if (ec.value()) - terminate(); else { - cancel_timer(); - on_interrupted(); + terminate(); } }; m_strand.post( -- cgit v1.2.3