Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/ping.c @ 26841:6faa5d5b4f44
Don't breaking if the user runs `/ping <user's server>` a bunch.
jabber_register_account and jabber_login really need a common 'init JabberStream' function.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Thu, 30 Apr 2009 04:59:11 +0000 |
parents | 75b30b849293 |
children | 6b0e150f2276 |
comparison
equal
deleted
inserted
replaced
26840:75b30b849293 | 26841:6faa5d5b4f44 |
---|---|
28 #include "ping.h" | 28 #include "ping.h" |
29 #include "iq.h" | 29 #include "iq.h" |
30 | 30 |
31 static void jabber_keepalive_pong_cb(JabberStream *js) | 31 static void jabber_keepalive_pong_cb(JabberStream *js) |
32 { | 32 { |
33 purple_timeout_remove(js->keepalive_timeout); | 33 if (js->keepalive_timeout >= 0) { |
34 js->keepalive_timeout = -1; | 34 purple_timeout_remove(js->keepalive_timeout); |
35 js->keepalive_timeout = -1; | |
36 } | |
35 } | 37 } |
36 | 38 |
37 void | 39 void |
38 jabber_ping_parse(JabberStream *js, const char *from, | 40 jabber_ping_parse(JabberStream *js, const char *from, |
39 JabberIqType type, const char *id, xmlnode *ping) | 41 JabberIqType type, const char *id, xmlnode *ping) |