diff options
author | mathieui <mathieui@mathieui.net> | 2015-05-12 00:02:32 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-05-12 00:02:32 +0200 |
commit | a2852eb249d443e7aef4281bba5243db8a40c837 (patch) | |
tree | 95c355110f01a4531e3aa8b24b782e1367145796 /slixmpp/plugins/xep_0325/control.py | |
parent | f1e6d6b0a92d061683cb1d1cabceb7f90c859a73 (diff) | |
download | slixmpp-a2852eb249d443e7aef4281bba5243db8a40c837.tar.gz slixmpp-a2852eb249d443e7aef4281bba5243db8a40c837.tar.bz2 slixmpp-a2852eb249d443e7aef4281bba5243db8a40c837.tar.xz slixmpp-a2852eb249d443e7aef4281bba5243db8a40c837.zip |
Allow the use of a custom loop instead of asyncio.get_event_loop()
Diffstat (limited to 'slixmpp/plugins/xep_0325/control.py')
-rw-r--r-- | slixmpp/plugins/xep_0325/control.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0325/control.py b/slixmpp/plugins/xep_0325/control.py index 81ed9039..0c6837f6 100644 --- a/slixmpp/plugins/xep_0325/control.py +++ b/slixmpp/plugins/xep_0325/control.py @@ -332,7 +332,7 @@ class XEP_0325(BasePlugin): self.sessions[session]["nodeDone"][node] = False for node in self.sessions[session]["node_list"]: - timer = asyncio.get_event_loop().call_later(self.nodes[node]['commTimeout'], partial(self._event_comm_timeout, args=(session, node))) + timer = self.xmpp.loop.call_later(self.nodes[node]['commTimeout'], partial(self._event_comm_timeout, args=(session, node))) self.sessions[session]["commTimers"][node] = timer self.nodes[node]['device'].set_control_fields(process_fields, session=session, callback=self._device_set_command_callback) |