mirror of https://github.com/Shizmob/pydle.git
Replace eventloop.schedule with call_soon when stopping connection
This commit is contained in:
parent
3ab8c6bceb
commit
2a52e40d26
|
@ -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. """
|
||||
|
|
Loading…
Reference in New Issue