mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
23 lines
466 B
C++
23 lines
466 B
C++
#include "common/NetworkManager.hpp"
|
|
|
|
#include <QNetworkAccessManager>
|
|
|
|
namespace chatterino {
|
|
|
|
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 chatterino
|