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 {
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) {