From: Anthony Minessale Date: Fri, 7 Dec 2012 17:15:33 +0000 (-0600) Subject: FS-4837 --resolve this should work with no addtl patches reopen if it doesn't work X-Git-Tag: v1.3.10~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03c5901c23ac7dac62b3a64d309ce3f59279e439;p=thirdparty%2Ffreeswitch.git FS-4837 --resolve this should work with no addtl patches reopen if it doesn't work --- diff --git a/libs/libdingaling/src/libdingaling.c b/libs/libdingaling/src/libdingaling.c index 9457663681..84c1820f46 100644 --- a/libs/libdingaling/src/libdingaling.c +++ b/libs/libdingaling/src/libdingaling.c @@ -1567,6 +1567,7 @@ static int on_stream_component(ldl_handle_t *handle, int type, iks *node) } globals.logger(DL_LOG_DEBUG, "XMPP authenticated\n"); ldl_set_flag_locked(handle, LDL_FLAG_AUTHORIZED); + ldl_set_flag_locked(handle, LDL_FLAG_CONNECTED); handle->fail_count = 0; } } else { @@ -1966,8 +1967,9 @@ static void xmpp_connect(ldl_handle_t *handle, char *jabber_id, char *pass) ldl_flush_queue(handle, 0); } - handle->counter--; if (!ldl_test_flag(handle, LDL_FLAG_CONNECTED)) { + handle->counter--; + if (IKS_NET_TLSFAIL == e) { globals.logger(DL_LOG_CRIT, "tls handshake failed\n"); microsleep(500);