[asterisk-commits] pcadach: branch pcadach/chan_h323-live r42886 - /team/pcadach/chan_h323-live/...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Sep 13 10:47:42 MST 2006


Author: pcadach
Date: Wed Sep 13 12:47:41 2006
New Revision: 42886

URL: http://svn.digium.com/view/asterisk?rev=42886&view=rev
Log:
Don't hold global lock for a while

Modified:
    team/pcadach/chan_h323-live/channels/chan_h323.c

Modified: team/pcadach/chan_h323-live/channels/chan_h323.c
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/channels/chan_h323.c?rev=42886&r1=42885&r2=42886&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/channels/chan_h323.c (original)
+++ team/pcadach/chan_h323-live/channels/chan_h323.c Wed Sep 13 12:47:41 2006
@@ -2335,7 +2335,7 @@
 					break;
 				}
 			}
-		} while (oh323);
+		} while (/*oh323*/ 0);
 #else
 restartsearch:		
 		oh323 = iflist;
@@ -2354,6 +2354,9 @@
 		if ((res < 0) || (res > 1000)) {
 			res = 1000;
 		}
+		/* Do not wait if some channel(s) is destroyed, probably, more available too */
+		if (oh323)
+			res = 1;
 		res = ast_io_wait(io, res);
 		pthread_testcancel();
 		ast_mutex_lock(&monlock);



More information about the asterisk-commits mailing list