Commit b020bd4b authored by Ian Barber's avatar Ian Barber

Revert "Remove unnecessary extra test in pipe assertion - now we are terminating…

Revert "Remove unnecessary extra test in pipe assertion - now we are terminating pipes we don't need to allow the case in which a pipe is rebound to the same sink"

This reverts commit 29f8d9ca.
parent 956cfd9f
......@@ -83,7 +83,7 @@ void zmq::pipe_t::set_peer (pipe_t *peer_)
void zmq::pipe_t::set_event_sink (i_pipe_events *sink_)
{
// Sink can be set once only.
zmq_assert (!sink);
zmq_assert (!sink || sink_ == sink);
sink = sink_;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment