mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
Fix logging for background thread
This commit is contained in:
@@ -105,7 +105,6 @@ namespace Espresso.Shell.Core
|
||||
|
||||
// In case cancellation was already requested.
|
||||
//ThreadToken.ThrowIfCancellationRequested();
|
||||
|
||||
try
|
||||
{
|
||||
if (keepDisplayOn)
|
||||
@@ -153,6 +152,7 @@ namespace Espresso.Shell.Core
|
||||
}
|
||||
catch (OperationCanceledException ex)
|
||||
{
|
||||
log.Debug($"Background thread termination. Message: {ex.Message}");
|
||||
// Task was clearly cancelled.
|
||||
return success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user