Commit 88c59631 authored by Jim Fulton's avatar Jim Fulton

No need to call set_event_loop, as we carry loops around

parent b4ecd30b
...@@ -723,7 +723,6 @@ class ClientThread(ClientRunner): ...@@ -723,7 +723,6 @@ class ClientThread(ClientRunner):
loop = None loop = None
try: try:
loop = asyncio.new_event_loop() loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
self.setup_delegation(loop) self.setup_delegation(loop)
self.started.set() self.started.set()
loop.run_forever() loop.run_forever()
......
...@@ -216,7 +216,7 @@ class Acceptor(object): ...@@ -216,7 +216,7 @@ class Acceptor(object):
self.addr = addr self.addr = addr
self.ssl_context = ssl self.ssl_context = ssl
self.event_loop = loop = asyncio.new_event_loop() self.event_loop = loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
if isinstance(addr, tuple): if isinstance(addr, tuple):
cr = loop.create_server(self.factory, addr[0], addr[1], cr = loop.create_server(self.factory, addr[0], addr[1],
reuse_address=True, ssl=ssl) reuse_address=True, ssl=ssl)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment