Suppres "Invalid timer" error when jabber-keepalive-timeout-timer is nil by some...
authorEvgenii Terechkov <[email protected]>
Mon, 26 Apr 2010 07:34:13 +0000 (26 15:34 +0800)
committerEvgenii Terechkov <[email protected]>
Tue, 19 Oct 2010 15:33:57 +0000 (19 23:33 +0800)
TBD: trace why jabber-keepalive-timeout-timer is nil sometimes.

jabber-keepalive.el

index d4f221f..7c424c1 100644 (file)
@@ -105,7 +105,7 @@ for all accounts regardless of the argument."
             (current-time-string)
             (plist-get (fsm-get-state-data jc) :server)))
   (setq jabber-keepalive-pending (remq jc jabber-keepalive-pending))
-  (when (null jabber-keepalive-pending)
+  (when (and (null jabber-keepalive-pending) (timerp jabber-keepalive-timeout-timer))
     (jabber-cancel-timer jabber-keepalive-timeout-timer)
     (setq jabber-keepalive-timeout-timer nil)))