Commit 29f8d9ca authored by Ian Barber's avatar Ian Barber

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

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
parent c13f1d52
......@@ -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 || sink_ == sink);
zmq_assert (!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