give processtime a minimum of 1s

This commit is contained in:
Evan Prodromou 2009-07-09 10:40:24 -04:00
parent 14267381e9
commit d2e83b6a67

View File

@ -63,7 +63,7 @@ class XmppQueueHandler extends QueueHandler
try { try {
if ($this->conn) { if ($this->conn) {
$this->log(LOG_DEBUG, "Servicing the XMPP queue."); $this->log(LOG_DEBUG, "Servicing the XMPP queue.");
$this->conn->processTime($timeout); $this->conn->processTime(max($timeout, 1));
$this->sendPing(); $this->sendPing();
} }
} catch (XMPPHP_Exception $e) { } catch (XMPPHP_Exception $e) {