[svn-commits] anthonyl: branch anthonyl/skinny-test r44500 -
/team/anthonyl/skinny-test/cha...
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Thu Oct 5 12:18:28 MST 2006
Author: anthonyl
Date: Thu Oct 5 14:18:27 2006
New Revision: 44500
URL: http://svn.digium.com/view/asterisk?rev=44500&view=rev
Log:
patch update
Modified:
team/anthonyl/skinny-test/channels/chan_skinny.c
Modified: team/anthonyl/skinny-test/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/team/anthonyl/skinny-test/channels/chan_skinny.c?rev=44500&r1=44499&r2=44500&view=diff
==============================================================================
--- team/anthonyl/skinny-test/channels/chan_skinny.c (original)
+++ team/anthonyl/skinny-test/channels/chan_skinny.c Thu Oct 5 14:18:27 2006
@@ -4192,11 +4192,14 @@
} else if (res != 4) {
ast_log(LOG_WARNING, "Skinny Client sent less data than expected. Expected 4 but got %d.\n", res);
ast_mutex_unlock(&s->lock);
+
+ if (res == 0) {
+ if (skinnydebug)
+ ast_verbose("Skinny client lost, unregistering\n");
+ skinny_unregister(NULL,s);
+ }
+
return -1;
- } else if (res == 0) {
- if (skinnydebug)
- ast_verbose("Skinny client lost, unregistering\n");
- skinny_unregister(NULL,s);
}
dlen = letohl(*(int *)s->inbuf);
More information about the svn-commits
mailing list