summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xrep.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xrep.cpp b/src/xrep.cpp
index 8304f62..d65f21b 100644
--- a/src/xrep.cpp
+++ b/src/xrep.cpp
@@ -226,8 +226,8 @@ int xs::xrep_t::xrecv (msg_t *msg_, int flags_)
pipe->set_identity (identity);
outpipes.erase (it);
outpipe_t outpipe = {pipe, true};
- outpipes.insert (outpipes_t::value_type (identity,
- outpipe));
+ it = outpipes.insert (outpipes_t::value_type (identity,
+ outpipe)).first;
break;
}
++it;