mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 00:46:05 +01:00
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:
parent
956cfd9f75
commit
b020bd4ba8
@ -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_;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user