mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
use singleordefault instead of single since sometims the queue may be empty but method doesn't return
This commit is contained in:
parent
756c5bce3d
commit
b8d3b42295
1 changed files with 2 additions and 1 deletions
|
|
@ -724,7 +724,8 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
try
|
||||
{
|
||||
token = resultsForUpdates.Select(r => r.Token).Distinct().Single();
|
||||
// Don't know why sometimes even resultsForUpdates is empty, the method won't return;
|
||||
token = resultsForUpdates.Select(r => r.Token).Distinct().SingleOrDefault();
|
||||
}
|
||||
#if DEBUG
|
||||
catch
|
||||
|
|
|
|||
Loading…
Reference in a new issue