Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/mailbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ int zmq::mailbox_t::recv (command_t *cmd_, int timeout_)

// Get a command.
errno_assert (rc == 0);

// check_read says that this can fail during deallocation. So, instead of using
// the fatal zmq_assert, just return a normal failure.
bool ok = cpipe.read (cmd_);
zmq_assert (ok);
return 0;

return (ok ? 0 : -1);
}