Skip to content

Commit

Permalink
problem: outpipe can be null when sending disconnect msg
Browse files Browse the repository at this point in the history
  • Loading branch information
somdoron committed May 19, 2021
1 parent e3c4ec2 commit 30a0c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ void zmq::pipe_t::process_pipe_peer_stats (uint64_t queue_count_,

void zmq::pipe_t::send_disconnect_msg ()
{
if (_disconnect_msg.size () > 0) {
if (_disconnect_msg.size () > 0 && _out_pipe) {
// Rollback any incomplete message in the pipe, and push the disconnect message.
rollback ();

Expand Down

0 comments on commit 30a0c59

Please sign in to comment.