mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-28 00:07:09 -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
|
// clear and resize buffer again
|
||||||
buffer.clear();
|
buffer.clear();
|
||||||
buffer.resize(bufferSize);
|
buffer.resize(bufferSize);
|
||||||
|
|
||||||
|
if (this->shouldStop())
|
||||||
|
break;
|
||||||
} while(length == bufferSize || ans.size() < 4);
|
} while(length == bufferSize || ans.size() < 4);
|
||||||
|
|
||||||
return ans;
|
return ans;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user