]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
give processtime a minimum of 1s
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 9 Jul 2009 14:40:24 +0000 (10:40 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 9 Jul 2009 14:40:24 +0000 (10:40 -0400)
lib/xmppqueuehandler.php

index 9b1a6989e2d1f25fae2698dc9cd833d3edba8178..7d14422c609e05b74a63a34bac3531063346bf63 100644 (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) {