From 2a52e40d26b3d802f844b57fb2db70f3ee1e4226 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 25 Dec 2018 11:06:18 -0600 Subject: [PATCH] Replace eventloop.schedule with call_soon when stopping connection --- pydle/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydle/connection.py b/pydle/connection.py index 49dcd6a..a07e9ef 100644 --- a/pydle/connection.py +++ b/pydle/connection.py @@ -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. """