void jabber_bosh_connection_send_keepalive(PurpleBOSHConnection *bosh) { if (bosh->send_timer != 0) purple_timeout_remove(bosh->send_timer); /* clears bosh->send_timer */ send_timer_cb(bosh); }
static gboolean bosh_inactivity_cb(gpointer data) { PurpleBOSHConnection *bosh = data; bosh->inactivity_timer = 0; if (bosh->send_timer != 0) purple_timeout_remove(bosh->send_timer); /* clears bosh->send_timer */ send_timer_cb(bosh); return FALSE; }