From 5dabc72bdabffe16c482a6c5d9b1677239442062 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Sun, 13 Oct 2019 01:38:55 +0200 Subject: [PATCH] added huge comment to prevent future shoot in the foot --- contrib/epee/include/net/abstract_tcp_server2.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/epee/include/net/abstract_tcp_server2.h b/contrib/epee/include/net/abstract_tcp_server2.h index 4501a37c..7a8fccf5 100644 --- a/contrib/epee/include/net/abstract_tcp_server2.h +++ b/contrib/epee/include/net/abstract_tcp_server2.h @@ -135,10 +135,10 @@ class connection volatile bool m_is_multithreaded; std::list>> m_self_refs; // add_ref/release support critical_section m_self_refs_lock; - - //this should be the last one, because it could be wait on destructor, while other activities possible on other threads - t_protocol_handler m_protocol_handler; - //typename t_protocol_handler::config_type m_dummy_config; + + t_protocol_handler m_protocol_handler; + //this should be the last line with m_protocol_handler, because it could be wait on destructor, while other activities possible on other threads + //DON'T ADD ANYTHING HERE!!! }; /************************************************************************/