mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Merge pull request #4193 from somdoron/master
problem: outpipe can be null when sending disconnect msg
This commit is contained in:
commit
78ea4ee787
@ -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…
Reference in New Issue
Block a user