[asterisk-commits] russell: branch 1.4 r70084 - /branches/1.4/channels/chan_gtalk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 19 14:13:45 CDT 2007


Author: russell
Date: Tue Jun 19 14:13:45 2007
New Revision: 70084

URL: http://svn.digium.com/view/asterisk?view=rev&rev=70084
Log:
Only attempt to queue a hangup on the owner channel if it actually exists.
(issue #9795, patch from zandbelt)

Modified:
    branches/1.4/channels/chan_gtalk.c

Modified: branches/1.4/channels/chan_gtalk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_gtalk.c?view=diff&rev=70084&r1=70083&r2=70084
==============================================================================
--- branches/1.4/channels/chan_gtalk.c (original)
+++ branches/1.4/channels/chan_gtalk.c Tue Jun 19 14:13:45 2007
@@ -691,10 +691,10 @@
 	if(!from)
 		from = client->connection->jid->full;
 
-
 	if (tmp) {
 		tmp->alreadygone = 1;
-		ast_queue_hangup(tmp->owner);
+		if (tmp->owner)
+			ast_queue_hangup(tmp->owner);
 	} else
 		ast_log(LOG_NOTICE, "Whoa, didn't find call!\n");
 	gtalk_response(client, from, pak, NULL, NULL);




More information about the asterisk-commits mailing list