Skip to content

Commit

Permalink
fix: deadlock due 'print_connection_container' inside logger macro
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg033 authored and LenyKholodov committed Mar 4, 2019
1 parent 8ee8103 commit 42b49c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/p2p/net_node.inl
Original file line number Diff line number Diff line change
Expand Up @@ -2360,7 +2360,8 @@ namespace nodetool
template<class t_payload_net_handler>
bool node_server<t_payload_net_handler>::log_connections()
{
MINFO("Connections: \r\n" << print_connections_container() );
std::string connections = print_connections_container();
MINFO("Connections: \r\n" << connections);
return true;
}
//-----------------------------------------------------------------------------------
Expand Down

0 comments on commit 42b49c9

Please sign in to comment.