Skip to content

Commit

Permalink
MUC: Make sure we respond to the right presence
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfire908 committed Jan 30, 2014
1 parent 22b11a6 commit fe72c14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sleekxmpp/plugins/xep_0045/muc.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ def on_resp(pres):
waiter.put(('failed', pres))
elif block:
waiter.put(('joined', pres))
else:
return

self.xmpp.del_event_handler('presence_error', on_resp)
self.xmpp.del_event_handler('muc::%s::joined' % room, on_resp)
Expand Down

0 comments on commit fe72c14

Please sign in to comment.