diff --git a/patches/@hyperswarm+dht-relay+0.4.1.patch b/patches/@hyperswarm+dht-relay+0.4.1.patch new file mode 100644 index 0000000..c2fe466 --- /dev/null +++ b/patches/@hyperswarm+dht-relay+0.4.1.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@hyperswarm/dht-relay/lib/node.js b/node_modules/@hyperswarm/dht-relay/lib/node.js +index 9ee8ef9..8a37655 100644 +--- a/node_modules/@hyperswarm/dht-relay/lib/node.js ++++ b/node_modules/@hyperswarm/dht-relay/lib/node.js +@@ -407,7 +407,7 @@ function onNoiseReceive (message) { + if (message.isInitiator) { + const handshake = this._handshakes.get(message.id) + +- if (handshake) { ++ if (handshake && !handshake.complete) { + handshake._onNoiseReceive(message) + } + } else {