aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorj-berman <justinberman@protonmail.com>2023-06-09 21:11:13 +0200
committerselsta <selsta@sent.at>2023-06-09 21:11:13 +0200
commit438554e1ab1a54b717cb167f176f4319c4fc185b (patch)
treed9a4e5f675287f80d617543fcd4ab1b9851762be /contrib
parentMerge pull request #8766 (diff)
downloadmonero-438554e1ab1a54b717cb167f176f4319c4fc185b.tar.xz
properly terminate interrupted TCP connection. fixes #8685
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/include/net/abstract_tcp_server2.inl5
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(