#include "util/NetworkManager.hpp" #include namespace chatterino { namespace util { QThread NetworkManager::workerThread; QNetworkAccessManager NetworkManager::NaM; void NetworkManager::init() { NetworkManager::NaM.moveToThread(&NetworkManager::workerThread); NetworkManager::workerThread.start(); } void NetworkManager::deinit() { NetworkManager::workerThread.quit(); NetworkManager::workerThread.wait(); } } // namespace util } // namespace chatterino