manually re-enqueue failed notices

This commit is contained in:
Evan Prodromou 2009-07-08 17:55:43 -04:00
parent 8bdb7dc93c
commit 8aef0e4271

View File

@ -108,7 +108,10 @@ class StompQueueManager
$this->con->ack($frame);
} else {
$this->_log(LOG_WARNING, 'Failed handling notice '. $notice->id .' posted at ' . $frame->headers['created'] . ' in queue '. $queue);
// Don't ack; it'll get re-sent
// FIXME we probably shouldn't have to do
// this kind of queue management ourselves
$this->con->ack($frame);
$this->enqueue($notice, $queue);
}
unset($notice);
}