Fix news manager assert error when exit too early

This commit is contained in:
Benau 2020-02-03 01:27:17 +08:00
parent 35463a12da
commit 00c7bf561e

View File

@ -83,7 +83,11 @@ namespace Online
assert(isPreparing());
setBusy();
execute();
if (RequestManager::isRunning() &&
RequestManager::get()->getAbort() && isAbortable()) return;
callback();
if (RequestManager::isRunning() &&
RequestManager::get()->getAbort() && isAbortable()) return;
setDone();
} // executeNow