Added new type of DataCenterMigrateException - NetworkMigrateException

Now we catch not only PhoneMigrateException but all DataCenterMigrationExceptions and reconnect
Fixes #568
This commit is contained in:
Daniel Vygolov 2017-09-23 16:06:54 +04:00 committed by Andres G. Aragoneses
parent 133b9fdf6c
commit 0015cf494b
2 changed files with 16 additions and 2 deletions

View file

@ -145,7 +145,7 @@ namespace TLSharp.Core
completed = true;
}
catch (PhoneMigrationException ex)
catch (DataCenterMigrationException ex)
{
await ReconnectToDcAsync(ex.DC);
}