mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 16:39:43 -05:00
Merge pull request #1832 from sehraf/pr_fix-deadlock
i2pbob: fix deadlock on shutdown
This commit is contained in:
commit
449f9cb804
@ -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…
Reference in New Issue
Block a user