Permalink
Browse files

Merge pull request #500 from lupinglade/patch-2

Resubmitting fix for #143
  • Loading branch information...
2 parents 611dc1b + 6916787 commit 58f682a2bd5173d6df8a144a803cf9b6ffe2ca0b @plamoni committed Apr 1, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/siriproxy/connection.rb
@@ -175,6 +175,11 @@ def flush_unzipped_output
end
def prep_received_object(object)
+ #workaround for #143
+ if object["class"] == "FinishSpeech" or object["class"] == "SpeechRecognized"
+ @block_rest_of_session = false
+ end
+
if object["refId"] == self.last_ref_id && @block_rest_of_session
puts "[Info - Dropping Object from Guzzoni] #{object["class"]}" if $LOG_LEVEL > 1
pp object if $LOG_LEVEL > 3

0 comments on commit 58f682a

Please sign in to comment.