From d2e83b6a67fec311f9bc36a7d886f40169d9de15 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 9 Jul 2009 10:40:24 -0400 Subject: [PATCH] give processtime a minimum of 1s --- lib/xmppqueuehandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xmppqueuehandler.php b/lib/xmppqueuehandler.php index 9b1a6989e2..7d14422c60 100644 --- a/lib/xmppqueuehandler.php +++ b/lib/xmppqueuehandler.php @@ -63,7 +63,7 @@ class XmppQueueHandler extends QueueHandler try { if ($this->conn) { $this->log(LOG_DEBUG, "Servicing the XMPP queue."); - $this->conn->processTime($timeout); + $this->conn->processTime(max($timeout, 1)); $this->sendPing(); } } catch (XMPPHP_Exception $e) { -- 2.39.5