mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-12 17:12:46 +00:00
problem: outpipe can be null when sending disconnect msg
This commit is contained in:
parent
e3c4ec241a
commit
30a0c590d8
@ -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 ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user