被登出时主动释放资源

This commit is contained in:
lishuo committed 2022-07-15 14:39:24 +08:00
1 parent c5fb7b93a3
commit 867b61fc00
1 file changed
+3
@@ -63,6 +63,9 @@ namespace Assets.Scripts.Apis
}
IEnumerator LoadLogin(string msg)
{
//释放资源
MapUDPService.Dispose();
App.MainDeviceAdapter.Dispose();
//删除本地文件
Helper.DelectDir(PFConstants.MapWorkoutRecordTempFolder);
App.tempRecordData = null;