aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net/abstract_tcp_server2.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-07-11 22:02:28 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-07-15 19:08:49 +0100
commit979105b2989746f1a426588862127d28c418f124 (patch)
tree14c771d1fc8b50948e8a525ed3f171a7860b12e4 /contrib/epee/include/net/abstract_tcp_server2.h
parentMerge pull request #4094 (diff)
downloadmonero-979105b2989746f1a426588862127d28c418f124.tar.xz
abstract_tcp_server2: fix race on shutdown
Diffstat (limited to 'contrib/epee/include/net/abstract_tcp_server2.h')
-rw-r--r--contrib/epee/include/net/abstract_tcp_server2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/epee/include/net/abstract_tcp_server2.h b/contrib/epee/include/net/abstract_tcp_server2.h
index 7ca6ac872..b2c05ebb0 100644
--- a/contrib/epee/include/net/abstract_tcp_server2.h
+++ b/contrib/epee/include/net/abstract_tcp_server2.h
@@ -158,6 +158,7 @@ namespace net_utils
std::list<boost::shared_ptr<connection<t_protocol_handler> > > m_self_refs; // add_ref/release support
critical_section m_self_refs_lock;
critical_section m_chunking_lock; // held while we add small chunks of the big do_send() to small do_send_chunk()
+ critical_section m_shutdown_lock; // held while shutting down
t_connection_type m_connection_type;