From 6c73dc742ed55f88dc9817e975fb20307780a0c8 Mon Sep 17 00:00:00 2001 From: j-berman Date: Fri, 3 Feb 2023 22:30:32 +0100 Subject: [PATCH] properly terminate interrupted TCP connection. fixes #8685 --- contrib/epee/include/net/abstract_tcp_server2.inl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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(