From 43a4e32de34984ed0dd6891dff7974e89cfd7b84 Mon Sep 17 00:00:00 2001 From: heavyrain2012 Date: Thu, 11 Mar 2021 07:58:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E9=94=99=E8=AF=AF=E7=A0=81=E6=98=AF-6?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E9=9C=80=E8=A6=81=E8=B0=83=E7=94=A8disconnec?= =?UTF-8?q?t=E6=9D=A5=E5=81=9C=E6=AD=A2=E5=8D=8F=E8=AE=AE=E6=A0=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/wfc/proto/proto.min.js | 3 +++ 1 file changed, 3 insertions(+) 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(); + } } // /**