adhearsion/punchblock — pull request #230 by runningferret (2014-09-11 15:23:05+00:00)
Title: Handle a corner case with recognition better

If we run a series of recognition requests and answer one correctly, and then hang up in the middle of the second (or otherwise cause the recognition to return in the 'INTERRUPTED' state) the complete method reads the old value for RECOG_COMPLETION_CAUSE and attempts to parse an empty string, throwing an exception. Handle a message coming back from a recognition request that is in the 'INTERRUPTED' state in a manner that doesn't cause an unchecked exception to be thrown (thus crashing the call and preventing any post-call actions from occurring)

Add changelog entry

Refactor for style guidelines

See #229 for the initial PR if interested.