mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-03 03:19:08 +08:00
Fix logging for background thread
This commit is contained in:
parent
45e24a2605
commit
a13a5fde84
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user