asyncio: fix boolean expression for stopping

This commit is contained in:
Janus 2018-02-12 16:16:17 +01:00
parent b427f55caf
commit 3f069fb25f

View File

@ -740,7 +740,7 @@ class Network(util.DaemonThread):
async def new_interface(self, server):
# todo: get tip first, then decide which checkpoint to use.
self.add_recent_server(server)
interface = Interface(server, self.config.path, self.proxy, lambda: not self.stopped and server not in self.interfaces)
interface = Interface(server, self.config.path, self.proxy, lambda: not self.stopped and server in self.interfaces)
interface.future = asyncio.Future()
interface.blockchain = None
interface.tip_header = None