diff libpurple/protocols/jabber/ping.c @ 27069:08f5c5b12e7c

The XMPP keepalive timeout handle needs to be a guint. This probably isn't the issue of Adium#12351, but is more correct.
author Paul Aurich <paul@darkrain42.org>
date Sun, 07 Jun 2009 17:02:23 +0000
parents 6b0e150f2276
children 5bbdb0a93c52
line wrap: on
line diff
--- a/libpurple/protocols/jabber/ping.c	Sun Jun 07 08:13:14 2009 +0000
+++ b/libpurple/protocols/jabber/ping.c	Sun Jun 07 17:02:23 2009 +0000
@@ -32,9 +32,9 @@
                                      JabberIqType type, const char *id,
                                      xmlnode *packet, gpointer data)
 {
-	if (js->keepalive_timeout >= 0) {
+	if (js->keepalive_timeout != 0) {
 		purple_timeout_remove(js->keepalive_timeout);
-		js->keepalive_timeout = -1;
+		js->keepalive_timeout = 0;
 	}
 }