]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
check for result *after* starting the network thread (bug #3952)
authorRussell Bryant <russell@russellbryant.com>
Tue, 5 Apr 2005 05:56:44 +0000 (05:56 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 5 Apr 2005 05:56:44 +0000 (05:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5392 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index cd9a3ba2d3ef2834face8843c021e466f00b03cc..5d5315dabf7f9e32f68acc3d01c5c0db26993280 100755 (executable)
@@ -7537,9 +7537,9 @@ int load_module(void)
 
        if (setsockopt(netsocket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos))) 
                ast_log(LOG_WARNING, "Unable to set TOS to %d\n", tos);
-       
+
+       res = start_network_thread();
        if (!res) {
-               res = start_network_thread();
                if (option_verbose > 1) 
                        ast_verbose(VERBOSE_PREFIX_2 "IAX Ready and Listening on %s port %d\n", ast_inet_ntoa(iabuf, sizeof(iabuf), sin.sin_addr), ntohs(sin.sin_port));
        } else {