Make session_bind_event awaitable
This commit is contained in:
parent
7b69ae3738
commit
e2562dcccf
@ -12,8 +12,8 @@
|
|||||||
:license: MIT, see LICENSE for more details
|
:license: MIT, see LICENSE for more details
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
import threading
|
|
||||||
|
|
||||||
from slixmpp import plugins, roster, stanza
|
from slixmpp import plugins, roster, stanza
|
||||||
from slixmpp.api import APIRegistry
|
from slixmpp.api import APIRegistry
|
||||||
@ -70,7 +70,7 @@ class BaseXMPP(XMLStream):
|
|||||||
#: redirections that will be followed before quitting.
|
#: redirections that will be followed before quitting.
|
||||||
self.max_redirects = 5
|
self.max_redirects = 5
|
||||||
|
|
||||||
self.session_bind_event = threading.Event()
|
self.session_bind_event = asyncio.Event()
|
||||||
|
|
||||||
#: A dictionary mapping plugin names to plugins.
|
#: A dictionary mapping plugin names to plugins.
|
||||||
self.plugin = PluginManager(self)
|
self.plugin = PluginManager(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user