Skip to content

Commit

Permalink
Problem: all tests fail with assert in in_event
Browse files Browse the repository at this point in the history
Solution: socket_base_t::in_event cannot do anything useful with
return status of process_commands. Asserting is the wrong solution,
as it is entirely valid to be interrupted or for the context to be
terminated, so discard the value.
  • Loading branch information
bluca committed Feb 22, 2016
1 parent ae8efc2 commit 80e529a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/socket_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1503,9 +1503,8 @@ void zmq::socket_base_t::in_event ()
if (thread_safe)
reaper_signaler->recv();

int rc = process_commands (0, false);
process_commands (0, false);
EXIT_MUTEX();
errno_assert(rc == 0);
check_destroy();
}

Expand Down

0 comments on commit 80e529a

Please sign in to comment.