| 866 | } |
| 867 | |
| 868 | void HttpLoader::startLoading() { |
| 869 | LOG(("Update Info: Loading using HTTP from '%1'.").arg(_url)); |
| 870 | |
| 871 | _thread = std::make_unique<QThread>(); |
| 872 | _actor = new HttpLoaderActor(this, _thread.get(), _url); |
| 873 | _thread->start(); |
| 874 | } |
| 875 | |
| 876 | HttpLoader::~HttpLoader() { |
| 877 | if (const auto thread = base::take(_thread)) { |