diff options
author | j-berman <justinberman@protonmail.com> | 2023-06-09 21:11:13 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2023-06-09 21:11:13 +0200 |
commit | 438554e1ab1a54b717cb167f176f4319c4fc185b (patch) | |
tree | d9a4e5f675287f80d617543fcd4ab1b9851762be /contrib | |
parent | Merge pull request #8766 (diff) | |
download | monero-438554e1ab1a54b717cb167f176f4319c4fc185b.tar.xz |
properly terminate interrupted TCP connection. fixes #8685
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/include/net/abstract_tcp_server2.inl | 5 |
1 files changed, 1 insertions, 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( |