File tree Expand file tree Collapse file tree
Lagrange.Core/Internal/Logic Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public WtExchangeLogic(BotContext context)
5252 _timers [ ExchangeEmpTag ] = new Timer ( OnExchangeEmp ) ;
5353 }
5454
55- public ValueTask Incoming ( ProtocolEvent e )
55+ public async ValueTask Incoming ( ProtocolEvent e )
5656 {
5757 switch ( e )
5858 {
@@ -62,11 +62,11 @@ public ValueTask Incoming(ProtocolEvent e)
6262 _context . EventInvoker . PostEvent ( new BotOfflineEvent ( BotOfflineEvent . Reasons . Kicked , ( kick . TipsTitle , kick . TipsInfo ) ) ) ;
6363 _context . IsOnline = false ;
6464 _timers [ SsoHeartBeatTag ] . Change ( Timeout . Infinite , Timeout . Infinite ) ;
65+
66+ await _context . EventContext . SendEvent < SsoUnregisterEventResp > ( new SsoUnregisterEventReq ( ) ) ;
6567 break ;
6668 }
6769 }
68-
69- return ValueTask . CompletedTask ;
7070 }
7171
7272 public async Task < bool > Login ( long uin , string ? password , CancellationToken token )
You can’t perform that action at this time.
0 commit comments