From: Evan Prodromou <evan@controlyourself.ca>
Date: Tue, 21 Jul 2009 19:50:32 +0000 (-0700)
Subject: update dbqueuemanager to respect handler timeout values
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6467351e32d2fa3a838556725fbdaccfa907969d;p=quix0rs-gnu-social.git

update dbqueuemanager to respect handler timeout values
---

diff --git a/lib/dbqueuemanager.php b/lib/dbqueuemanager.php
index 6e7172de00..a37a8ffdf6 100644
--- a/lib/dbqueuemanager.php
+++ b/lib/dbqueuemanager.php
@@ -55,7 +55,8 @@ class DBQueueManager extends QueueManager
     {
         while (true) {
             $this->_log(LOG_DEBUG, 'Checking for notices...');
-            $notice = $this->_nextItem($queue, null);
+            $timeout = $handler->timeout();
+            $notice = $this->_nextItem($queue, $timeout);
             if (empty($notice)) {
                 $this->_log(LOG_DEBUG, 'No notices waiting; idling.');
                 // Nothing in the queue. Do you