mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix crash in update checker destruction.
This commit is contained in:
@@ -1129,9 +1129,10 @@ void Updater::check() {
|
||||
void Updater::handleReady() {
|
||||
stop();
|
||||
_action = Action::Ready;
|
||||
|
||||
cSetLastUpdateCheck(unixtime());
|
||||
Local::writeSettings();
|
||||
if (!App::quitting()) {
|
||||
cSetLastUpdateCheck(unixtime());
|
||||
Local::writeSettings();
|
||||
}
|
||||
}
|
||||
|
||||
void Updater::handleFailed() {
|
||||
@@ -1156,10 +1157,11 @@ void Updater::handleProgress() {
|
||||
|
||||
void Updater::scheduleNext() {
|
||||
stop();
|
||||
|
||||
cSetLastUpdateCheck(unixtime());
|
||||
Local::writeSettings();
|
||||
start(true);
|
||||
if (!App::quitting()) {
|
||||
cSetLastUpdateCheck(unixtime());
|
||||
Local::writeSettings();
|
||||
start(true);
|
||||
}
|
||||
}
|
||||
|
||||
auto Updater::state() const -> State {
|
||||
|
||||
Reference in New Issue
Block a user