diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-04-14 17:54:16 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-04-14 19:14:56 +0200 |
commit | d34ddf33db361eb39193ca4231bc56c60af5ddac (patch) | |
tree | d7a65126637c162e853a2514eb6b8b589d95eb15 /slixmpp/plugins/xep_0047/ibb.py | |
parent | eb4e09b0ca2f699405c448ae7e4b818ff72ea301 (diff) | |
download | slixmpp-d34ddf33db361eb39193ca4231bc56c60af5ddac.tar.gz slixmpp-d34ddf33db361eb39193ca4231bc56c60af5ddac.tar.bz2 slixmpp-d34ddf33db361eb39193ca4231bc56c60af5ddac.tar.xz slixmpp-d34ddf33db361eb39193ca4231bc56c60af5ddac.zip |
XEP-0047: replace threading events with simple booleans.
Diffstat (limited to 'slixmpp/plugins/xep_0047/ibb.py')
-rw-r--r-- | slixmpp/plugins/xep_0047/ibb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0047/ibb.py b/slixmpp/plugins/xep_0047/ibb.py index d1c708ed..be452877 100644 --- a/slixmpp/plugins/xep_0047/ibb.py +++ b/slixmpp/plugins/xep_0047/ibb.py @@ -142,7 +142,7 @@ class XEP_0047(BasePlugin): log.debug('IBB stream (%s) accepted by %s', stream.sid, iq['from']) stream.self_jid = iq['to'] stream.peer_jid = iq['from'] - stream.stream_started.set() + stream.stream_started = True self.api['set_stream'](stream.self_jid, stream.sid, stream.peer_jid, stream) self.xmpp.event('ibb_stream_start', stream) self.xmpp.event('stream:%s:%s' % (stream.sid, stream.peer_jid), stream) @@ -167,7 +167,7 @@ class XEP_0047(BasePlugin): stream = IBBytestream(self.xmpp, sid, size, iq['to'], iq['from']) - stream.stream_started.set() + stream.stream_started = True self.api['set_stream'](stream.self_jid, stream.sid, stream.peer_jid, stream) iq.reply().send() |