}
]);
- if (this.connectionsState != ConnectionState.CONNECTED) {
+ if (this.connectionState != ConnectionState.CONNECTED) {
throw new WebAPIException('InvalidStateError', 'Service is not connected yet.');
}
if (native_.isFailure(result)) {
throw native_.getErrorObject(result);
} else {
- this.connectionState = ConnectionState.DISCONNECTED;
+ this.connectionState = ConnectionState.NOT_CONNECTED;
}
native_.callIfPossible(successCallback, this);
if (native_.isFailure(result)) {
throw native_.getErrorObject(result);
} else {
- this.connectionState = ConnectionState.DISCONNECTED;
+ this.connectionState = ConnectionState.NOT_CONNECTED;
}
native_.callIfPossible(successCallback, this);