Skip to content

Commit

Permalink
fixed bug with error on stopListening for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Kuragin committed Jan 19, 2015
1 parent 68bf756 commit feeef79
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Binary file modified libs/ios/api-ai-ios-sdk/libApiAI.a
Binary file not shown.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="ai.api.apiaiplugin"
version="1.2.0">
version="1.2.1">

<name>ApiAISDKPlugin</name>

Expand Down
3 changes: 1 addition & 2 deletions src/ios/ApiAIPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ - (void)cancelAllRequests:(CDVInvokedUrlCommand*)command

- (void)stopListening:(CDVInvokedUrlCommand*)command
{
[self.lastVoiceRequest cancel];
self.lastVoiceRequest = nil;
[self.lastVoiceRequest commitVoice];
}

@end

0 comments on commit feeef79

Please sign in to comment.