diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-09 10:40:24 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-09 10:40:24 -0400 |
commit | d2e83b6a67fec311f9bc36a7d886f40169d9de15 (patch) | |
tree | 3f60a3a533a7edad72f2bb9ad5c1eb275893e0fc /lib/xmppqueuehandler.php | |
parent | 14267381e989f36936308e69a530513082cf5e67 (diff) |
give processtime a minimum of 1s
Diffstat (limited to 'lib/xmppqueuehandler.php')
-rw-r--r-- | lib/xmppqueuehandler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xmppqueuehandler.php b/lib/xmppqueuehandler.php index 9b1a6989e..7d14422c6 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) { |