Skip to content

Commit

Permalink
No need to call set_event_loop, as we carry loops around
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jul 7, 2016
1 parent b4ecd30 commit 88c5963
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/ZEO/asyncio/client.py
Expand Up @@ -723,7 +723,6 @@ def run(self):
loop = None
try:
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
self.setup_delegation(loop)
self.started.set()
loop.run_forever()
Expand Down
2 changes: 1 addition & 1 deletion src/ZEO/asyncio/server.py
Expand Up @@ -216,7 +216,7 @@ def __init__(self, storage_server, addr, ssl):
self.addr = addr
self.ssl_context = ssl
self.event_loop = loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)

if isinstance(addr, tuple):
cr = loop.create_server(self.factory, addr[0], addr[1],
reuse_address=True, ssl=ssl)
Expand Down

0 comments on commit 88c5963

Please sign in to comment.