diff --git a/src/wfc/proto/proto.min.js b/src/wfc/proto/proto.min.js index 1cf145c3..041bdcb8 100644 --- a/src/wfc/proto/proto.min.js +++ b/src/wfc/proto/proto.min.js @@ -69,6 +69,9 @@ class WfcImpl { self.connectionStatus = status; self.eventEmitter.emit(EventType.ConnectionStatusChanged, status); console.log('connection status changed', status); + if (self.isLogined && (status == ConnectionStatus.ConnectionStatusSecretKeyMismatch || status === ConnectionStatus.ConnectionStatusRejected)) { + self.disconnect(); + } } // /**