Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dont let crashing plugins take down server

  • Loading branch information...
commit 2c89b922a81a89d6961b77de1a511f8276574f4a 1 parent 09f1d39
@twalpole authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 lib/siriproxy/plugin_manager.rb
View
12 lib/siriproxy/plugin_manager.rb
@@ -47,9 +47,15 @@ def process_filters(object, direction)
end
def process(text)
- result = super(text)
- self.guzzoni_conn.block_rest_of_session if result
- return result
+ begin
+ result = super(text)
+ self.guzzoni_conn.block_rest_of_session if result
+ return result
+ rescue Exception=>e
+ log "Plugin Crashed: #{e}"
+ respond e.to_s, spoken: "a plugin crashed"
+ return true
+ end
end
def send_request_complete_to_iphone

1 comment on commit 2c89b92

Please sign in to comment.
Something went wrong with that request. Please try again.