]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use keepalives effectively in order diagnose bug #12432.
authorPhilippe Sultan <philippe.sultan@gmail.com>
Thu, 17 Apr 2008 13:42:23 +0000 (13:42 +0000)
committerPhilippe Sultan <philippe.sultan@gmail.com>
Thu, 17 Apr 2008 13:42:23 +0000 (13:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114198 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_jabber.c

index 3f8329c951b01e325fe52feff08ad28b8de1cbaf..687bc1c33639b5f9c63633c076b82e9de6072f34 100644 (file)
@@ -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