Skip to content

Commit 1d1909c

Browse files
committed
Fix results view update task dispose issue
1 parent 334a27f commit 1d1909c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,10 @@ protected virtual void Dispose(bool disposing)
15641564
{
15651565
_updateSource?.Dispose();
15661566
_resultsUpdateChannelWriter?.Complete();
1567-
_resultsViewUpdateTask?.Dispose();
1567+
if (_resultsViewUpdateTask?.IsCompleted == true)
1568+
{
1569+
_resultsViewUpdateTask.Dispose();
1570+
}
15681571
_disposed = true;
15691572
}
15701573
}

0 commit comments

Comments
 (0)