Fix error in router socket introduced in the previous commit

This commit is contained in:
Martin Hurton 2012-04-03 09:28:38 +02:00
parent f037290dc3
commit 9a60b3a2a1

View File

@ -108,8 +108,10 @@ void zmq::router_t::xread_activated (pipe_t *pipe_)
fq.activated (pipe_);
else {
bool identity_ok = identify_peer (pipe_);
if (identity_ok)
if (identity_ok) {
anonymous_pipes.erase (it);
fq.attach (pipe_);
}
}
}