aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Database.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Database.cpp b/src/Database.cpp
index 5ff3460..50b5044 100644
--- a/src/Database.cpp
+++ b/src/Database.cpp
@@ -647,6 +647,9 @@ namespace odhtdb
{
InfoHash responseKey = receiveMessageKey;
++responseKey[0];
+
+ if(!bootstrapConnection.areWeListeningOnKey(responseKey.getKey()))
+ bootstrapConnection.listen(responseKey.getKey(), nullptr);
return bootstrapConnection.listen(receiveMessageKey.getKey(), [callbackFunc, this, responseKey](const sibs::DirectConnectionPeer *peer, const void *data, const usize size)
{