comparison libpurple/protocols/jabber/ping.c @ 27153:5bbdb0a93c52

Re-add annoying debug output for Adium#12351 (I must be missing something, because I don't see why it's occurring)
author Paul Aurich <paul@darkrain42.org>
date Sun, 07 Jun 2009 18:45:17 +0000
parents 08f5c5b12e7c
children cb3e89f5a2d5
comparison
equal deleted inserted replaced
27152:d570d1e10382 27153:5bbdb0a93c52
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_debug_misc("jabber", "Keepalive PONG\n");
36 purple_timeout_remove(js->keepalive_timeout); 37 purple_timeout_remove(js->keepalive_timeout);
37 js->keepalive_timeout = 0; 38 js->keepalive_timeout = 0;
38 } 39 } else
40 purple_debug_warning("jabber", "Keepalive PONG with no outstanding timeout!\n");
39 } 41 }
40 42
41 void 43 void
42 jabber_ping_parse(JabberStream *js, const char *from, 44 jabber_ping_parse(JabberStream *js, const char *from,
43 JabberIqType type, const char *id, xmlnode *ping) 45 JabberIqType type, const char *id, xmlnode *ping)