diff options
author | Dan Sully <daniel@electricrain.com> | 2016-08-23 23:05:22 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-08-23 23:05:22 +0200 |
commit | e2562dcccfcaaae44afcc12907a5a36c7f1c9db0 (patch) | |
tree | ac2a8b8b1550cfc25781b003dbd3c3c9e836ef58 | |
parent | 7b69ae373838c1adcbff223b7c2d8518ff6d8f85 (diff) | |
download | slixmpp-e2562dcccfcaaae44afcc12907a5a36c7f1c9db0.tar.gz slixmpp-e2562dcccfcaaae44afcc12907a5a36c7f1c9db0.tar.bz2 slixmpp-e2562dcccfcaaae44afcc12907a5a36c7f1c9db0.tar.xz slixmpp-e2562dcccfcaaae44afcc12907a5a36c7f1c9db0.zip |
Make session_bind_event awaitable
-rw-r--r-- | slixmpp/basexmpp.py | 4 |
1 files 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) |