被登出时主动释放资源

This commit is contained in:
lishuo 2022-07-15 14:37:42 +08:00
parent c5fb7b93a3
commit 867b61fc00

View File

@ -63,6 +63,9 @@ namespace Assets.Scripts.Apis
}
IEnumerator LoadLogin(string msg)
{
//释放资源
MapUDPService.Dispose();
App.MainDeviceAdapter.Dispose();
//删除本地文件
Helper.DelectDir(PFConstants.MapWorkoutRecordTempFolder);
App.tempRecordData = null;