Make session_bind_event awaitable

This commit is contained in:
Dan Sully 2016-08-23 23:05:22 +02:00 committed by mathieui
parent 7b69ae3738
commit e2562dcccf

View File

@ -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)