Commit f9770e93 authored by Stefan Radomski's avatar Stefan Radomski

Fixed iterator when erasing from inprocs multimap

parent 624dd1e5
...@@ -1011,7 +1011,8 @@ void zmq::socket_base_t::terminated (pipe_t *pipe_) ...@@ -1011,7 +1011,8 @@ void zmq::socket_base_t::terminated (pipe_t *pipe_)
xterminated (pipe_); xterminated (pipe_);
// Remove pipe from inproc pipes // Remove pipe from inproc pipes
for (inprocs_t::iterator it = inprocs.begin(); it != inprocs.end(); ++it) { inprocs_t::iterator it = inprocs.begin();
while (it != inprocs.end()) {
if (it->second == pipe_) { if (it->second == pipe_) {
inprocs.erase(it++); inprocs.erase(it++);
} else { } else {
......
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