Skip to content

Commit 3c1b55e

Browse files
committed
fix(app-launch): Dispose of _scavengeTimer to prevent resource leaks in ApplicationLaunchMonitor
1 parent 009d35a commit 3c1b55e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Uno.UI.RemoteControl.Server/AppLaunch/ApplicationLaunchMonitor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Collections.Concurrent;
33
using System.Collections.Generic;
44
using System.Threading;
5-
using System.Threading.Tasks;
65

76
namespace Uno.UI.RemoteControl.Server.AppLaunch;
87

@@ -290,6 +289,8 @@ private void RunScavengePass()
290289
/// </summary>
291290
public void Dispose()
292291
{
292+
_scavengeTimer?.Dispose();
293+
293294
// Dispose all timers and clear pending timeout tasks
294295
foreach (var kvp in _timeoutTasks.ToArray())
295296
{

0 commit comments

Comments
 (0)