aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net/abstract_tcp_server2.inl
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/epee/include/net/abstract_tcp_server2.inl')
-rw-r--r--contrib/epee/include/net/abstract_tcp_server2.inl14
1 files changed, 1 insertions, 13 deletions
diff --git a/contrib/epee/include/net/abstract_tcp_server2.inl b/contrib/epee/include/net/abstract_tcp_server2.inl
index 94dbe7458..dbdfbc74d 100644
--- a/contrib/epee/include/net/abstract_tcp_server2.inl
+++ b/contrib/epee/include/net/abstract_tcp_server2.inl
@@ -827,7 +827,7 @@ POP_WARNINGS
}
CRITICAL_REGION_END();
// Wait for all threads in the pool to exit.
- if (wait) // && ! ::cryptonote::core::get_is_stopping()) // TODO fast_exit
+ if (wait)
{
_fact("JOINING all threads");
for (std::size_t i = 0; i < m_threads.size(); ++i) {
@@ -897,10 +897,6 @@ POP_WARNINGS
template<class t_protocol_handler>
void boosted_tcp_server<t_protocol_handler>::send_stop_signal()
{
- if (::cryptonote::core::get_fast_exit() == true)
- {
- detach_threads();
- }
m_stop_signal_sent = true;
TRY_ENTRY();
connections_mutex.lock();
@@ -1144,14 +1140,6 @@ POP_WARNINGS
return true;
CATCH_ENTRY_L0("boosted_tcp_server<t_protocol_handler>::connect_async", false);
}
- //---------------------------------------------------------------------------------
- template<class t_protocol_handler>
- void boosted_tcp_server<t_protocol_handler>::detach_threads()
- {
- for (auto thread : m_threads)
- thread->detach();
- }
-
} // namespace
} // namespace