Commit 0533fb1c authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #399 from hurtonm/master

Small cleanup
parents f8752bf9 6ac5cf86
...@@ -117,15 +117,14 @@ void zmq::router_t::xread_activated (pipe_t *pipe_) ...@@ -117,15 +117,14 @@ void zmq::router_t::xread_activated (pipe_t *pipe_)
void zmq::router_t::xwrite_activated (pipe_t *pipe_) void zmq::router_t::xwrite_activated (pipe_t *pipe_)
{ {
for (outpipes_t::iterator it = outpipes.begin (); outpipes_t::iterator it;
it != outpipes.end (); ++it) { for (it = outpipes.begin (); it != outpipes.end (); ++it)
if (it->second.pipe == pipe_) { if (it->second.pipe == pipe_)
break;
zmq_assert (it != outpipes.end ());
zmq_assert (!it->second.active); zmq_assert (!it->second.active);
it->second.active = true; it->second.active = true;
return;
}
}
zmq_assert (false);
} }
int zmq::router_t::xsend (msg_t *msg_, int flags_) int zmq::router_t::xsend (msg_t *msg_, int flags_)
......
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