mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-31 01:43:02 +08:00
issue 11 - Assertion failed: it != peers.end () (pgm_receiver.cpp:161)
This commit is contained in:
parent
38e9103e0c
commit
77cbd18e9c
@ -146,13 +146,14 @@ void zmq::pgm_receiver_t::in_event ()
|
||||
|
||||
// Data loss. Delete decoder and mark the peer as disjoint.
|
||||
if (received == -1) {
|
||||
zmq_assert (it != peers.end ());
|
||||
it->second.joined = false;
|
||||
if (it->second.decoder == mru_decoder)
|
||||
mru_decoder = NULL;
|
||||
if (it->second.decoder != NULL) {
|
||||
delete it->second.decoder;
|
||||
it->second.decoder = NULL;
|
||||
if (it != peers.end ()) {
|
||||
it->second.joined = false;
|
||||
if (it->second.decoder == mru_decoder)
|
||||
mru_decoder = NULL;
|
||||
if (it->second.decoder != NULL) {
|
||||
delete it->second.decoder;
|
||||
it->second.decoder = NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user