Skip to content

Commit 104ae20

Browse files
committed
up
1 parent 6f6f582 commit 104ae20

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kbe/src/server/baseapp/baseapp.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2405,7 +2405,7 @@ void Baseapp::reLoginGateway(Mercury::Channel* pChannel, std::string& accountNam
24052405
accountName % key % entityID);
24062406

24072407
Base* base = findEntity(entityID);
2408-
if(base == NULL || !PyObject_TypeCheck(base, Proxy::getScriptType()))
2408+
if(base == NULL || !PyObject_TypeCheck(base, Proxy::getScriptType()) || base->isDestroyed())
24092409
{
24102410
loginGatewayFailed(pChannel, accountName, SERVER_ERR_ILLEGAL_LOGIN);
24112411
return;
@@ -2439,7 +2439,6 @@ void Baseapp::reLoginGateway(Mercury::Channel* pChannel, std::string& accountNam
24392439
(*pBundle).newMessage(ClientInterface::onReLoginGatewaySuccessfully);
24402440
(*pBundle).send(this->getNetworkInterface(), pChannel);
24412441
Mercury::Bundle::ObjPool().reclaimObject(pBundle);
2442-
24432442
}
24442443
else
24452444
{

0 commit comments

Comments
 (0)