--- a/mcabber/src/jabglue.c Sat Feb 18 15:04:17 2006 +0100
+++ b/mcabber/src/jabglue.c Sat Feb 18 15:07:51 2006 +0100
@@ -170,6 +170,9 @@
void jb_main()
{
+ time_t now;
+ static time_t last_iqs_check = 0;
+
if (!online) {
safe_usleep(10000);
return;
@@ -211,10 +214,16 @@
statehandler(jc, JCONN_STATE_OFF);
}
+ time(&now);
+
+ // Check for IQ requests timeouts
+ if (now > last_iqs_check + 20) {
+ iqs_check_timeout(now);
+ last_iqs_check = now;
+ }
+
// Keepalive
if (KeepaliveDelay) {
- time_t now;
- time(&now);
if (now > LastPingTime + KeepaliveDelay)
jb_keepalive();
}