TL deserialization errors no longer cause a ReactorError. Renewing session on layer change to prevent old layer messages

This commit is contained in:
Wizou 2024-06-15 17:35:25 +02:00
parent 85cc404213
commit 1a00ae5a77
2 changed files with 22 additions and 13 deletions

View file

@ -50,7 +50,7 @@ namespace WTelegramClientTest
await CreateAndConnect();
break;
}
catch (Exception ex)
catch (Exception ex) when (ex is not ObjectDisposedException)
{
Console.WriteLine("Connection still failing: " + ex.Message);
}