Fix logging for background thread

This commit is contained in:
Den Delimarsky 2021-05-01 09:41:22 -07:00
parent 45e24a2605
commit a13a5fde84
No known key found for this signature in database
GPG Key ID: E1BE1355085F0BCF

View File

@ -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;
}