释放资源

This commit is contained in:
liufei
2022-01-06 20:05:40 +08:00
parent 5ff3f04da6
commit 58c67a0497
3 changed files with 5 additions and 1 deletions

View File

@@ -167,6 +167,7 @@ namespace GeekDesk.Util
public void TimerStop()
{
if (timer == null) return;
timer.Stop();
timer.Dispose();
timer = null;