diff options
author | Brion Vibber <brion@pobox.com> | 2010-02-25 02:43:20 +0000 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-02-25 02:43:20 +0000 |
commit | b798faf9ea67c5e02ee515fb8e344132f8edd6be (patch) | |
tree | a29064f26dd9416120fa6ce0dfd310444c911062 /plugins/OStatus/lib | |
parent | 10884dcd49da8db1fcca3cbbef0f85869d43520e (diff) |
OStatus: abort processing of this PuSH in item if we got an exception, rather than letting it be re-run.
Diffstat (limited to 'plugins/OStatus/lib')
-rw-r--r-- | plugins/OStatus/lib/pushinqueuehandler.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/OStatus/lib/pushinqueuehandler.php b/plugins/OStatus/lib/pushinqueuehandler.php index a90f52df2..1fd29ae30 100644 --- a/plugins/OStatus/lib/pushinqueuehandler.php +++ b/plugins/OStatus/lib/pushinqueuehandler.php @@ -40,7 +40,11 @@ class PushInQueueHandler extends QueueHandler $feedsub = FeedSub::staticGet('id', $feedsub_id); 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 { common_log(LOG_ERR, "Discarding POST to unknown feed subscription id $feedsub_id"); } |