]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OpportunisticQM/lib/opportunisticqueuemanager.php
Merge branch 'master' of git.gnu.io:Quix0r/gnu-social
[quix0rs-gnu-social.git] / plugins / OpportunisticQM / lib / opportunisticqueuemanager.php
index 0ad4411bf278bea98053d2ea2a0d2abb26cdaa77..86a77150dec12567f5b729dc32d0209e28ae2eaa 100644 (file)
@@ -80,6 +80,13 @@ class OpportunisticQueueManager extends DBQueueManager
         return true;
     }
 
+    // OpportunisticQM shouldn't discard items it can't handle, we're
+    // only here to take care of what we _can_ handle!
+    protected function noHandlerFound(Queue_item $qi, $rep=null) {
+        $this->_log(LOG_WARNING, "[{$qi->transport}:item {$qi->id}] Releasing claim for queue item without a handler");
+        $this->_fail($qi, true);    // true here means "releaseOnly", so no error statistics since it's not an _error_
+    }
+
     /**
      * Takes care of running through the queue items, returning when
      * the limits setup in __construct are met.