Merge pull request #1832 from sehraf/pr_fix-deadlock

i2pbob: fix deadlock on shutdown
This commit is contained in:
csoler 2020-04-03 11:18:06 +02:00 committed by GitHub
commit 449f9cb804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;