mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-08 07:55:22 +00:00
Added new type of DataCenterMigrateException - NetworkMigrateException
Now we catch not only PhoneMigrateException but all DataCenterMigrationExceptions and reconnect Fixes #568
This commit is contained in:
parent
133b9fdf6c
commit
0015cf494b
2 changed files with 16 additions and 2 deletions
|
|
@ -145,7 +145,7 @@ namespace TLSharp.Core
|
|||
|
||||
completed = true;
|
||||
}
|
||||
catch (PhoneMigrationException ex)
|
||||
catch (DataCenterMigrationException ex)
|
||||
{
|
||||
await ReconnectToDcAsync(ex.DC);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue