1
0
Fork 0
forked from lthn/blockchain

attempt to fix #127

This commit is contained in:
cryptozoidberg 2019-10-13 01:27:03 +02:00
parent 1b6fff2bf3
commit fdddf58ebf
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -133,12 +133,12 @@ class connection
volatile uint32_t& m_ref_sockets_count;
i_connection_filter*& m_pfilter;
volatile bool m_is_multithreaded;
std::list<boost::shared_ptr<connection<t_protocol_handler>>> 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;
std::list<boost::shared_ptr<connection<t_protocol_handler>>> m_self_refs; // add_ref/release support
critical_section m_self_refs_lock;
};
/************************************************************************/