Channel difference fix (fixes #212)

This commit is contained in:
Daniil Gentili 2017-10-17 16:08:06 +03:00
parent a477ad61d4
commit 056ea2c3d8

View File

@ -184,6 +184,10 @@ trait UpdateHandler
}
throw $e;
} catch (\danog\MadelineProto\PTSException $e) {
unset($this->channels_state[$channel]);
$this->load_channel_state($channel)['sync_loading'] = false;
return $this->get_channel_difference($channel);
} finally {
$this->load_channel_state($channel)['sync_loading'] = false;
}