[Telepathy-commits] [multi-jingle/master] Detect errors when joining the muc

Sjoerd Simons sjoerd.simons at collabora.co.uk
Sat Jan 17 14:44:37 PST 2009


---
 multi-jingle-client.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/multi-jingle-client.py b/multi-jingle-client.py
index a2875cc..855a8d5 100644
--- a/multi-jingle-client.py
+++ b/multi-jingle-client.py
@@ -410,6 +410,12 @@ class Muc:
             return
 
         if self.state == Muc.JOINING:
+            error = util.elem_find_child(stanza, 'jabber:client', 'error')
+            if error is not None:
+                print "Joining failed :("
+                reactor.crash()
+                return
+
             if from_jid == self.my_jid:
                 self.state = Muc.PRESENT
                 self.joined()
-- 
1.5.6.5




More information about the Telepathy-commits mailing list