mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
fix: don't crash if smth wrong when fetching devs and channels
This commit is contained in:
parent
7dfc27f3c9
commit
ddf74e5f78
1 changed files with 6 additions and 2 deletions
|
@ -70,7 +70,6 @@ void RCManager::gotResponse() {
|
|||
return;
|
||||
}
|
||||
|
||||
cSetLastUpdateCheck(base::unixtime::now());
|
||||
const auto response = _reply->readAll();
|
||||
clearSentRequest();
|
||||
|
||||
|
@ -81,7 +80,12 @@ void RCManager::gotResponse() {
|
|||
}
|
||||
|
||||
bool RCManager::handleResponse(const QByteArray &response) {
|
||||
return applyResponse(response);
|
||||
try {
|
||||
return applyResponse(response);
|
||||
} catch (...) {
|
||||
LOG(("RCManager: Failed to apply response"));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool RCManager::applyResponse(const QByteArray &response) {
|
||||
|
|
Loading…
Add table
Reference in a new issue