diff options
author | saturneric <[email protected]> | 2023-10-18 14:45:33 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-18 14:45:33 +0000 |
commit | 70196cf01757824a578e4d9c49a210bf136de266 (patch) | |
tree | e058a59c6289b2a3872222c8822bae393cb7c213 /src/ui/thread/VersionCheckTask.cpp | |
parent | fix: solve build issues on macOS (diff) | |
download | GpgFrontend-70196cf01757824a578e4d9c49a210bf136de266.tar.gz GpgFrontend-70196cf01757824a578e4d9c49a210bf136de266.zip |
feat: using pool for concurrent executions, not stable yet
Diffstat (limited to 'src/ui/thread/VersionCheckTask.cpp')
-rw-r--r-- | src/ui/thread/VersionCheckTask.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/thread/VersionCheckTask.cpp b/src/ui/thread/VersionCheckTask.cpp index 84f21317..c03ccb16 100644 --- a/src/ui/thread/VersionCheckTask.cpp +++ b/src/ui/thread/VersionCheckTask.cpp @@ -66,7 +66,7 @@ void VersionCheckTask::Run() { } catch (...) { SPDLOG_ERROR("unknown error occurred"); - emit SignalTaskRunnableEnd(-1); + emit SignalTaskShouldEnd(-1); } } @@ -130,7 +130,7 @@ void VersionCheckTask::slot_parse_latest_version_info() { &VersionCheckTask::slot_parse_current_version_info); } catch (...) { SPDLOG_ERROR("current version request create error"); - emit SignalTaskRunnableEnd(-1); + emit SignalTaskShouldEnd(-1); } } @@ -173,7 +173,7 @@ void VersionCheckTask::slot_parse_current_version_info() { } emit SignalUpgradeVersion(version_); - emit SignalTaskRunnableEnd(0); + emit SignalTaskShouldEnd(0); } } // namespace GpgFrontend::UI |