mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-23 04:29:36 +08:00
修复拒绝连接后仍然能连接成功的BUG
This commit is contained in:
parent
4558110af9
commit
35382bf703
@ -96,6 +96,7 @@ namespace Milimoe.FunGame.Core.Controller
|
||||
{
|
||||
bool success = obj.GetParam<bool>(0);
|
||||
msg = obj.GetParam<string>(1) ?? "";
|
||||
result = success ? ConnectResult.Success : ConnectResult.ConnectFailed;
|
||||
if (success)
|
||||
{
|
||||
_Socket.Token = obj.GetParam<Guid>(2);
|
||||
@ -116,10 +117,7 @@ namespace Milimoe.FunGame.Core.Controller
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result = ConnectResult.ConnectFailed;
|
||||
}
|
||||
else result = ConnectResult.ConnectFailed;
|
||||
}
|
||||
else _Socket?.Close();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user