mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-14 02:57:47 +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 ()
|
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 any incomplete message in the pipe, and push the disconnect message.
|
||||||
rollback ();
|
rollback ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user