mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-31 18:55:49 +00:00
FS-4837 --resolve this should work with no addtl patches reopen if it doesn't work
This commit is contained in:
parent
b513d72465
commit
03c5901c23
@ -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");
|
globals.logger(DL_LOG_DEBUG, "XMPP authenticated\n");
|
||||||
ldl_set_flag_locked(handle, LDL_FLAG_AUTHORIZED);
|
ldl_set_flag_locked(handle, LDL_FLAG_AUTHORIZED);
|
||||||
|
ldl_set_flag_locked(handle, LDL_FLAG_CONNECTED);
|
||||||
handle->fail_count = 0;
|
handle->fail_count = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1966,8 +1967,9 @@ static void xmpp_connect(ldl_handle_t *handle, char *jabber_id, char *pass)
|
|||||||
ldl_flush_queue(handle, 0);
|
ldl_flush_queue(handle, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
handle->counter--;
|
|
||||||
if (!ldl_test_flag(handle, LDL_FLAG_CONNECTED)) {
|
if (!ldl_test_flag(handle, LDL_FLAG_CONNECTED)) {
|
||||||
|
handle->counter--;
|
||||||
|
|
||||||
if (IKS_NET_TLSFAIL == e) {
|
if (IKS_NET_TLSFAIL == e) {
|
||||||
globals.logger(DL_LOG_CRIT, "tls handshake failed\n");
|
globals.logger(DL_LOG_CRIT, "tls handshake failed\n");
|
||||||
microsleep(500);
|
microsleep(500);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user