Permalink
Browse files

dont let crashing plugins take down server

  • Loading branch information...
1 parent 09f1d39 commit 2c89b922a81a89d6961b77de1a511f8276574f4a @twalpole committed Jan 8, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 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

+1

Please sign in to comment.