@@ -527,6 +527,8 @@ public void login_loginapp(bool noconnect)
527527
528528 private void onConnectTo_loginapp_callback ( string ip , int port , bool success , object userData )
529529 {
530+ _lastTickCBTime = System . DateTime . Now ;
531+
530532 if ( ! success )
531533 {
532534 Dbg . ERROR_MSG ( string . Format ( "KBEngine::login_loginapp(): connect {0}:{1} is error!" , ip , port ) ) ;
@@ -543,6 +545,8 @@ private void onConnectTo_loginapp_callback(string ip, int port, bool success, ob
543545
544546 private void onLogin_loginapp ( )
545547 {
548+ _lastTickCBTime = System . DateTime . Now ;
549+
546550 if ( ! loginappMessageImported_ )
547551 {
548552 var bundle = Bundle . createObject ( ) ;
@@ -582,6 +586,8 @@ public void login_baseapp(bool noconnect)
582586
583587 private void onConnectTo_baseapp_callback ( string ip , int port , bool success , object userData )
584588 {
589+ _lastTickCBTime = System . DateTime . Now ;
590+
585591 if ( ! success )
586592 {
587593 Dbg . ERROR_MSG ( string . Format ( "KBEngine::login_baseapp(): connect {0}:{1} is error!" , ip , port ) ) ;
@@ -598,6 +604,8 @@ private void onConnectTo_baseapp_callback(string ip, int port, bool success, obj
598604
599605 private void onLogin_baseapp ( )
600606 {
607+ _lastTickCBTime = System . DateTime . Now ;
608+
601609 if ( ! baseappMessageImported_ )
602610 {
603611 var bundle = Bundle . createObject ( ) ;
@@ -640,6 +648,8 @@ private void onReConnectTo_baseapp_callback(string ip, int port, bool success, o
640648 bundle . writeUint64 ( entity_uuid ) ;
641649 bundle . writeInt32 ( entity_id ) ;
642650 bundle . send ( _networkInterface ) ;
651+
652+ _lastTickCBTime = System . DateTime . Now ;
643653 }
644654
645655 /*
@@ -1156,7 +1166,8 @@ public void onOpenLoginapp_resetpassword()
11561166 Dbg . DEBUG_MSG ( "KBEngine::onOpenLoginapp_resetpassword: successfully!" ) ;
11571167 currserver = "loginapp" ;
11581168 currstate = "resetpassword" ;
1159-
1169+ _lastTickCBTime = System . DateTime . Now ;
1170+
11601171 if ( ! loginappMessageImported_ )
11611172 {
11621173 Bundle bundle = Bundle . createObject ( ) ;
@@ -1200,6 +1211,8 @@ public void resetpassword_loginapp(bool noconnect)
12001211
12011212 private void onConnectTo_resetpassword_callback ( string ip , int port , bool success , object userData )
12021213 {
1214+ _lastTickCBTime = System . DateTime . Now ;
1215+
12031216 if ( ! success )
12041217 {
12051218 Dbg . ERROR_MSG ( string . Format ( "KBEngine::resetpassword_loginapp(): connect {0}:{1} is error!" , ip , port ) ) ;
@@ -1304,6 +1317,7 @@ public void onOpenLoginapp_createAccount()
13041317 Dbg . DEBUG_MSG ( "KBEngine::onOpenLoginapp_createAccount: successfully!" ) ;
13051318 currserver = "loginapp" ;
13061319 currstate = "createAccount" ;
1320+ _lastTickCBTime = System . DateTime . Now ;
13071321
13081322 if ( ! loginappMessageImported_ )
13091323 {
@@ -1320,6 +1334,8 @@ public void onOpenLoginapp_createAccount()
13201334
13211335 private void onConnectTo_createAccount_callback ( string ip , int port , bool success , object userData )
13221336 {
1337+ _lastTickCBTime = System . DateTime . Now ;
1338+
13231339 if ( ! success )
13241340 {
13251341 Dbg . ERROR_MSG ( string . Format ( "KBEngine::createAccount_loginapp(): connect {0}:{1} is error!" , ip , port ) ) ;
0 commit comments