Merge pull request #4193 from somdoron/master

problem: outpipe can be null when sending disconnect msg
This commit is contained in:
Simon Giesecke 2021-05-19 14:14:35 +02:00 committed by GitHub
commit 78ea4ee787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ();