From e2562dcccfcaaae44afcc12907a5a36c7f1c9db0 Mon Sep 17 00:00:00 2001 From: Dan Sully Date: Tue, 23 Aug 2016 23:05:22 +0200 Subject: Make session_bind_event awaitable --- slixmpp/basexmpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slixmpp/basexmpp.py b/slixmpp/basexmpp.py index e5f5f0b1..6ade0e3c 100644 --- a/slixmpp/basexmpp.py +++ b/slixmpp/basexmpp.py @@ -12,8 +12,8 @@ :license: MIT, see LICENSE for more details """ +import asyncio import logging -import threading from slixmpp import plugins, roster, stanza from slixmpp.api import APIRegistry @@ -70,7 +70,7 @@ class BaseXMPP(XMLStream): #: redirections that will be followed before quitting. self.max_redirects = 5 - self.session_bind_event = threading.Event() + self.session_bind_event = asyncio.Event() #: A dictionary mapping plugin names to plugins. self.plugin = PluginManager(self) -- cgit v1.2.3