Crash fix
This commit is contained in:
parent
378bc73bf8
commit
ac808d51d6
2 changed files with 3 additions and 2 deletions
|
@ -156,7 +156,7 @@ void Peer::received(
|
|||
Mutex::Lock ltl(_lastTriedPath_m);
|
||||
|
||||
bool triedTooRecently = false;
|
||||
for(std::vector< std::pair< Path *, int64_t > >::iterator i(_lastTriedPath.begin());i!=_lastTriedPath.end();) {
|
||||
for(std::list< std::pair< Path *, int64_t > >::iterator i(_lastTriedPath.begin());i!=_lastTriedPath.end();) {
|
||||
if ((now - i->second) > 1000) {
|
||||
_lastTriedPath.erase(i++);
|
||||
} else if (i->first == path.ptr()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue