Commit a9690289 authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #302 from hurtonm/router_bugfix

Fix error in router socket introduced in the previous commit
parents 2faedd9e 9a60b3a2
...@@ -108,8 +108,10 @@ void zmq::router_t::xread_activated (pipe_t *pipe_) ...@@ -108,8 +108,10 @@ void zmq::router_t::xread_activated (pipe_t *pipe_)
fq.activated (pipe_); fq.activated (pipe_);
else { else {
bool identity_ok = identify_peer (pipe_); bool identity_ok = identify_peer (pipe_);
if (identity_ok) if (identity_ok) {
anonymous_pipes.erase (it); anonymous_pipes.erase (it);
fq.attach (pipe_);
}
} }
} }
......
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