X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fstompqueuemanager.php;h=7c3af4945e2b1db7eb039a47bf1b007961a789a3;hb=f0480c34d7e3d528fc559568ce6ac53c3b33f8f9;hp=4084470e211f9cc0c656c18512f637bf6cd48e19;hpb=1e89540c3f52f95e9224d781c01b2c927d3c3f09;p=quix0rs-gnu-social.git diff --git a/lib/stompqueuemanager.php b/lib/stompqueuemanager.php index 4084470e21..7c3af4945e 100644 --- a/lib/stompqueuemanager.php +++ b/lib/stompqueuemanager.php @@ -509,15 +509,13 @@ class StompQueueManager extends QueueManager $frame->headers['created'] . " in queue $queue from $host"; $this->_log(LOG_DEBUG, "Dequeued $info"); - $handler = $this->getHandler($queue); - if (!$handler) { + try { + $handler = $this->getHandler($queue); + $ok = $handler->handle($item); + } catch (NoQueueHandlerException $e) { $this->_log(LOG_ERR, "Missing handler class; skipping $info"); $this->stats('badhandler', $queue); return false; - } - - try { - $ok = $handler->handle($item); } catch (Exception $e) { $this->_log(LOG_ERR, "Exception on queue $queue: " . $e->getMessage()); $ok = false;