mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 08:07:31 -04:00
Merge pull request #1832 from sehraf/pr_fix-deadlock
i2pbob: fix deadlock on shutdown
This commit is contained in:
commit
449f9cb804
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue