summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slixmpp/basexmpp.py4
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)