Fix conditional.

This commit is contained in:
Richard Kiss 2017-05-13 22:52:43 -07:00
parent 8da8d20b53
commit eb8a2c72e6

View File

@ -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: