Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/ping.c @ 27151: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 |
comparison
equal
deleted
inserted
replaced
27150:faed0a042558 | 27151:08f5c5b12e7c |
---|---|
30 | 30 |
31 static void jabber_keepalive_pong_cb(JabberStream *js, const char *from, | 31 static void jabber_keepalive_pong_cb(JabberStream *js, const char *from, |
32 JabberIqType type, const char *id, | 32 JabberIqType type, const char *id, |
33 xmlnode *packet, gpointer data) | 33 xmlnode *packet, gpointer data) |
34 { | 34 { |
35 if (js->keepalive_timeout >= 0) { | 35 if (js->keepalive_timeout != 0) { |
36 purple_timeout_remove(js->keepalive_timeout); | 36 purple_timeout_remove(js->keepalive_timeout); |
37 js->keepalive_timeout = -1; | 37 js->keepalive_timeout = 0; |
38 } | 38 } |
39 } | 39 } |
40 | 40 |
41 void | 41 void |
42 jabber_ping_parse(JabberStream *js, const char *from, | 42 jabber_ping_parse(JabberStream *js, const char *from, |