From a664c5b0f13696e6c18464da848e9269b72fa99e Mon Sep 17 00:00:00 2001 From: Piotr Kosko Date: Fri, 25 Nov 2016 15:46:22 +0100 Subject: [PATCH] [Convergence] Fixed typo in JS Change-Id: Icc2f38dbfe9b7b25726973e9149c47d60971ce5d Signed-off-by: Piotr Kosko --- src/convergence/convergence_api.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/convergence/convergence_api.js b/src/convergence/convergence_api.js index 7221f36b..5c8650ff 100644 --- a/src/convergence/convergence_api.js +++ b/src/convergence/convergence_api.js @@ -379,7 +379,7 @@ RemoteAppControlService.prototype.disconnect = function(successCallback, errorCa } ]); - if (this.connectionsState != ConnectionState.CONNECTED) { + if (this.connectionState != ConnectionState.CONNECTED) { throw new WebAPIException('InvalidStateError', 'Service is not connected yet.'); } @@ -394,7 +394,7 @@ RemoteAppControlService.prototype.disconnect = function(successCallback, errorCa if (native_.isFailure(result)) { throw native_.getErrorObject(result); } else { - this.connectionState = ConnectionState.DISCONNECTED; + this.connectionState = ConnectionState.NOT_CONNECTED; } native_.callIfPossible(successCallback, this); @@ -1063,7 +1063,7 @@ AppCommunicationClientService.prototype.disconnect = function(successCallback, e if (native_.isFailure(result)) { throw native_.getErrorObject(result); } else { - this.connectionState = ConnectionState.DISCONNECTED; + this.connectionState = ConnectionState.NOT_CONNECTED; } native_.callIfPossible(successCallback, this); -- 2.34.1