[Telepathy-commits] [mingle/master] Print an error and exit if we can't get a session for the remote contact

Sjoerd Simons sjoerd at luon.net
Thu Nov 13 02:26:55 PST 2008


---
 jingle-call.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/jingle-call.py b/jingle-call.py
index cd68e75..2999ef9 100644
--- a/jingle-call.py
+++ b/jingle-call.py
@@ -24,6 +24,9 @@ client = create_client(jid, password)
 
 def resource_caps(contact, caps):
     session = jingle.get_session_for_capabilities(client, caps)
+    if session == None:
+        print "Cant get session for remote contact"
+        reactor.stop()
     session.initiate(contact)
 
 def resource_online(contact):
-- 
1.5.6.5




More information about the Telepathy-commits mailing list