Skip to content

Commit

Permalink
Better error reporting
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
  • Loading branch information
sustrik committed Nov 22, 2014
1 parent 6dcecf3 commit 1ae64bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,10 @@ static void nn_sock_shutdown (struct nn_fsm *self, int src, int type,
if (nn_slow (sock->state == NN_SOCK_STATE_STOPPING_EPS)) {

/* Endpoint is stopped. Now we can safely deallocate it. */
nn_assert (src == NN_SOCK_SRC_EP && type == NN_EP_STOPPED);
if (!(src == NN_SOCK_SRC_EP && type == NN_EP_STOPPED)) {
fprintf (stderr, "src=%d type=%d\n", (int) src, (int) type);
nn_assert (src == NN_SOCK_SRC_EP && type == NN_EP_STOPPED);
}
ep = (struct nn_ep*) srcptr;
nn_list_erase (&sock->sdeps, &ep->item);
nn_ep_term (ep);
Expand Down

0 comments on commit 1ae64bb

Please sign in to comment.