fix false "error": "Cant destroy RepInfo"

This commit is contained in:
GenZmeY 2022-08-30 09:55:09 +03:00
parent f92bea7114
commit 5e4086c861

View File

@ -253,10 +253,7 @@ public function NotifyLogout(Controller C)
{ {
`Log_Trace(); `Log_Trace();
if (!DestroyRepInfo(C)) DestroyRepInfo(C);
{
`Log_Error("Can't destroy RepInfo of:" @ C);
}
} }
public function bool CreateRepInfo(Controller C) public function bool CreateRepInfo(Controller C)
@ -304,8 +301,8 @@ public function bool DestroyRepInfo(Controller C)
{ {
if (RepInfo.Owner == C) if (RepInfo.Owner == C)
{ {
RepInfo.SafeDestroy();
RepInfos.RemoveItem(RepInfo); RepInfos.RemoveItem(RepInfo);
RepInfo.SafeDestroy();
return true; return true;
} }
} }