OStatus: abort processing of this PuSH in item if we got an exception, rather than letting it be re-run.

This commit is contained in:
Brion Vibber 2010-02-25 02:43:20 +00:00
parent 10884dcd49
commit b798faf9ea

View File

@ -40,7 +40,11 @@ class PushInQueueHandler extends QueueHandler
$feedsub = FeedSub::staticGet('id', $feedsub_id); $feedsub = FeedSub::staticGet('id', $feedsub_id);
if ($feedsub) { if ($feedsub) {
$feedsub->receive($post, $hmac); try {
$feedsub->receive($post, $hmac);
} catch(Exception $e) {
common_log(LOG_ERR, "Exception during PuSH input processing for $feedsub->uri: " . $e->getMessage());
}
} else { } else {
common_log(LOG_ERR, "Discarding POST to unknown feed subscription id $feedsub_id"); common_log(LOG_ERR, "Discarding POST to unknown feed subscription id $feedsub_id");
} }