Hotfix when one DC is not available
This commit is contained in:
parent
006890a29c
commit
5a06970c23
1 changed files with 1 additions and 1 deletions
|
@ -637,7 +637,7 @@ static void telegram_send_sms (struct tgl_state *TLS) {
|
|||
static int all_authorized (struct tgl_state *TLS) {
|
||||
int i;
|
||||
for (i = 0; i <= TLS->max_dc_num; i++) if (TLS->DC_list[i]) {
|
||||
if (!tgl_authorized_dc (TLS, TLS->DC_list[i])) {
|
||||
if (!tgl_signed_dc(TLS, TLS->DC_list[i]) && !tgl_authorized_dc (TLS, TLS->DC_list[i])) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue