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/ProxyConnectionTestTask.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 '')
-rw-r--r-- | src/ui/thread/ProxyConnectionTestTask.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/thread/ProxyConnectionTestTask.cpp b/src/ui/thread/ProxyConnectionTestTask.cpp index 01313cf7..9a723727 100644 --- a/src/ui/thread/ProxyConnectionTestTask.cpp +++ b/src/ui/thread/ProxyConnectionTestTask.cpp @@ -35,11 +35,11 @@ GpgFrontend::UI::ProxyConnectionTestTask::ProxyConnectionTestTask(QString url, : Task("proxy_connection_test_task"), url_(std::move(url)), timeout_(timeout), - network_manager_(new QNetworkAccessManager(this)) {} - -void GpgFrontend::UI::ProxyConnectionTestTask::run() { + network_manager_(new QNetworkAccessManager(this)) { HoldOnLifeCycle(true); +} +void GpgFrontend::UI::ProxyConnectionTestTask::run() { auto* network_reply = network_manager_->get(QNetworkRequest{url_}); auto* timer = new QTimer(this); @@ -74,5 +74,5 @@ void GpgFrontend::UI::ProxyConnectionTestTask::slot_process_network_reply( } emit SignalProxyConnectionTestResult(result_); - emit SignalTaskRunnableEnd(0); + emit SignalTaskShouldEnd(0); } |