mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-01-23 08:50:24 +01:00
Prevent logging reactor exceptions if expected due to cancellation
This commit is contained in:
parent
67285c1c08
commit
cd6d813845
|
|
@ -558,9 +558,10 @@ namespace WTelegram
|
|||
}
|
||||
catch (OperationCanceledException)
|
||||
{ }
|
||||
catch (Exception ex) when (!ct.IsCancellationRequested)
|
||||
catch (Exception ex)
|
||||
{
|
||||
Helpers.Log(5, $"An exception occured in the reactor: {ex}");
|
||||
if (!ct.IsCancellationRequested)
|
||||
Helpers.Log(5, $"An exception occured in the reactor: {ex}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue