mirror of https://github.com/procxx/kepka.git
Fix crash in update checker destruction.
This commit is contained in:
parent
4c289fc8fb
commit
e09510ea9f
|
@ -1129,9 +1129,10 @@ void Updater::check() {
|
||||||
void Updater::handleReady() {
|
void Updater::handleReady() {
|
||||||
stop();
|
stop();
|
||||||
_action = Action::Ready;
|
_action = Action::Ready;
|
||||||
|
if (!App::quitting()) {
|
||||||
cSetLastUpdateCheck(unixtime());
|
cSetLastUpdateCheck(unixtime());
|
||||||
Local::writeSettings();
|
Local::writeSettings();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Updater::handleFailed() {
|
void Updater::handleFailed() {
|
||||||
|
@ -1156,10 +1157,11 @@ void Updater::handleProgress() {
|
||||||
|
|
||||||
void Updater::scheduleNext() {
|
void Updater::scheduleNext() {
|
||||||
stop();
|
stop();
|
||||||
|
if (!App::quitting()) {
|
||||||
cSetLastUpdateCheck(unixtime());
|
cSetLastUpdateCheck(unixtime());
|
||||||
Local::writeSettings();
|
Local::writeSettings();
|
||||||
start(true);
|
start(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto Updater::state() const -> State {
|
auto Updater::state() const -> State {
|
||||||
|
|
Loading…
Reference in New Issue