Replace eventloop.schedule with call_soon when stopping connection

This commit is contained in:
Harmon 2018-12-25 11:06:18 -06:00 committed by Joshua Salzedo
parent 3ab8c6bceb
commit 2a52e40d26
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class Connection:
def stop(self):
""" Stop event loop. """
self.eventloop.schedule(lambda: self.eventloop.stop())
self.eventloop.call_soon(lambda: self.eventloop.stop())
async def send(self, data):
""" Add data to send queue. """