2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Remove exceptions in TL parsing.

This commit is contained in:
John Preston
2019-07-18 16:06:38 +02:00
parent 4a10a88ecf
commit 6aa930d510
18 changed files with 463 additions and 384 deletions

View File

@@ -458,9 +458,7 @@ bool SpecialConfigRequest::decryptSimpleConfig(const QByteArray &bytes) {
return false;
}
try {
_simpleConfig.read(from, end);
} catch (...) {
if (!_simpleConfig.read(from, end)) {
LOG(("Config Error: Could not read configSimple."));
return false;
}