aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_jabber.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_jabber.c')
-rw-r--r--res/res_jabber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_jabber.c b/res/res_jabber.c
index 3f8329c95..687bc1c33 100644
--- a/res/res_jabber.c
+++ b/res/res_jabber.c
@@ -1565,7 +1565,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 = iks_send_raw(client->p, " ");
+ res = client->keepalive ? iks_send_raw(client->p, " ") : IKS_OK;
if(res == IKS_OK)
client->timeout = 50;
else