]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
update dbqueuemanager to respect handler timeout values
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 21 Jul 2009 19:50:32 +0000 (12:50 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 21 Jul 2009 19:52:55 +0000 (12:52 -0700)
lib/dbqueuemanager.php

index 6e7172de005ee7df94096e459122f936c424c3b4..a37a8ffdf645c2699a2bee671b4a1f45abf3104b 100644 (file)
@@ -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