diff options
author | Nathan Fritz <fritzy@netflint.net> | 2010-02-27 02:02:08 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2010-02-27 02:02:08 +0000 |
commit | 8d5dbfa691f17118173d4eaeca8222826e6a6dc5 (patch) | |
tree | c2e9ff325c65e00c35c57af1d4783a73bb01d0b6 /sleekxmpp/xmlstream/xmlstream.py | |
parent | e06cdec81ae8732b496acdbb3e86ad8ef7afe640 (diff) | |
download | slixmpp-8d5dbfa691f17118173d4eaeca8222826e6a6dc5.tar.gz slixmpp-8d5dbfa691f17118173d4eaeca8222826e6a6dc5.tar.bz2 slixmpp-8d5dbfa691f17118173d4eaeca8222826e6a6dc5.tar.xz slixmpp-8d5dbfa691f17118173d4eaeca8222826e6a6dc5.zip |
fixed some presence bugs
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 44f83840..594583a8 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -154,7 +154,7 @@ class XMLStream(object): def _process(self): "Start processing the socket." firstrun = True - while firstrun or self.state['reconnect']: + while self.run and (firstrun or self.state['reconnect']): self.state.set('processing', True) firstrun = False try: @@ -229,7 +229,7 @@ class XMLStream(object): edepth += 1 def _sendThread(self): - while True: + while self.run: data = self.sendqueue.get(True) logging.debug("SEND: %s" % data) try: |