i2pbob: fix deadlock on shutdown

This commit is contained in:
sehraf 2020-03-13 17:08:48 +01:00
parent 4c4b7ce754
commit ddd6b91f71
No known key found for this signature in database
GPG Key ID: DF09F6EAE356B2C6

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;