Hotfix when one DC is not available

This commit is contained in:
mjentsch 2015-07-12 23:01:04 +02:00
parent 006890a29c
commit 5a06970c23

View file

@ -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;
}
}