From eb8a2c72e680d387813e84ed0080d3afeb5b4037 Mon Sep 17 00:00:00 2001 From: Richard Kiss Date: Sat, 13 May 2017 22:52:43 -0700 Subject: [PATCH] Fix conditional. --- magneticod/magneticod/dht.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magneticod/magneticod/dht.py b/magneticod/magneticod/dht.py index ad60836..07053c6 100644 --- a/magneticod/magneticod/dht.py +++ b/magneticod/magneticod/dht.py @@ -192,8 +192,8 @@ class SybilNode: info_hash, metadata = r for peer in self.__peers[info_hash]: peer.close() - self._metadata_q.put_nowait(r) - self._complete_info_hashes.add(info_hash) + self._metadata_q.put_nowait(r) + self._complete_info_hashes.add(info_hash) def __bootstrap(self) -> None: for addr in BOOTSTRAPPING_NODES: