mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-22 23:11:03 +01:00
Fixed iterator when erasing from inprocs multimap
This commit is contained in:
parent
624dd1e5b5
commit
f9770e93ef
@ -1011,7 +1011,8 @@ void zmq::socket_base_t::terminated (pipe_t *pipe_)
|
||||
xterminated (pipe_);
|
||||
|
||||
// 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_) {
|
||||
inprocs.erase(it++);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user