diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-04-04 23:32:11 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-04-04 23:32:11 +0000 |
commit | 9a3d47664ee3f722d4ecae50cd3fda59e5843e3a (patch) | |
tree | dccdbb9e7f2d4e3667f44a700824beab1f9fd0fb /channels | |
parent | 09571d527a33c50909ddeee535ea73e474c9c6c8 (diff) |
move start_network_thread to _before_ testing its result :-) (bug #3952)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5386 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_iax2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 6ea03392d..1ff0c6b0e 100755 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -9050,14 +9050,16 @@ int load_module(void) } } + 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)); + 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 { ast_log(LOG_ERROR, "Unable to start network thread\n"); ast_netsock_release(&netsock); } + for (reg = registrations; reg; reg = reg->next) iax2_do_register(reg); ast_mutex_lock(&peerl.lock); |