mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 22:55:04 -04:00
i2pbob: fix deadlock on shutdown
This commit is contained in:
parent
4c4b7ce754
commit
ddd6b91f71
1 changed files with 3 additions and 0 deletions
|
@ -1131,6 +1131,9 @@ std::string p3I2pBob::recv()
|
|||
// clear and resize buffer again
|
||||
buffer.clear();
|
||||
buffer.resize(bufferSize);
|
||||
|
||||
if (this->shouldStop())
|
||||
break;
|
||||
} while(length == bufferSize || ans.size() < 4);
|
||||
|
||||
return ans;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue