diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/res_jabber.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_jabber.c b/res/res_jabber.c index 5bcf70f3d..d56505af8 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -1889,7 +1889,7 @@ static void *aji_recv_loop(void *data) else if (res == IKS_NET_TLSFAIL) ast_log(LOG_WARNING, "JABBER: Failure in TLS.\n"); else if (client->timeout == 0 && client->state == AJI_CONNECTED) { - res = aji_send_raw(client, " "); + res = client->keepalive ? aji_send_raw(client, " ") : IKS_OK; if(res == IKS_OK) client->timeout = 50; else |