[asterisk-commits] mattf: branch mattf/bug13495 r170941 - /team/mattf/bug13495/channels/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Jan 24 16:11:21 CST 2009
Author: mattf
Date: Sat Jan 24 16:11:20 2009
New Revision: 170941
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=170941
Log:
Make sure we close the socket when the link goes down
Modified:
team/mattf/bug13495/channels/chan_dahdi.c
Modified: team/mattf/bug13495/channels/chan_dahdi.c
URL: http://svn.digium.com/svn-view/asterisk/team/mattf/bug13495/channels/chan_dahdi.c?view=diff&rev=170941&r1=170940&r2=170941
==============================================================================
--- team/mattf/bug13495/channels/chan_dahdi.c (original)
+++ team/mattf/bug13495/channels/chan_dahdi.c Sat Jan 24 16:11:20 2009
@@ -10444,7 +10444,6 @@
{
ss7->start_thread_info[linkindex].ss7 = ss7;
ss7->start_thread_info[linkindex].linkindex = linkindex;
- ss7->fds[linkindex] = -1;
ast_pthread_create(&ss7->start_thread_info[linkindex].thread,
NULL, ss7_start_tcp_channel_thread,
@@ -10600,8 +10599,10 @@
break;
}
+ close(linkset->fds[i]);
+ linkset->fds[i] = -1;
+
ss7_start_tcp_channel(linkset, i);
-
}
}
break;
More information about the asterisk-commits
mailing list