From ddd6b91f71b75e7d6cf725e601af1059bfe33a68 Mon Sep 17 00:00:00 2001 From: sehraf Date: Fri, 13 Mar 2020 17:08:48 +0100 Subject: [PATCH] i2pbob: fix deadlock on shutdown --- libretroshare/src/services/autoproxy/p3i2pbob.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libretroshare/src/services/autoproxy/p3i2pbob.cc b/libretroshare/src/services/autoproxy/p3i2pbob.cc index 2cdec3b4f..693570ac2 100644 --- a/libretroshare/src/services/autoproxy/p3i2pbob.cc +++ b/libretroshare/src/services/autoproxy/p3i2pbob.cc @@ -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;