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 29f8d9ca15f679132302ca5a9016692c2be1d6b2.
This commit is contained in:
Ian Barber 2012-06-12 14:49:44 +01:00
parent 956cfd9f75
commit b020bd4ba8

View File

@ -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_;
}