Thread safety for torrent client

This commit is contained in:
Emil Axelsson
2018-01-10 09:26:32 +01:00
parent 2758b35dec
commit b9d073e505
+2
View File
@@ -57,8 +57,10 @@ TorrentClient::TorrentClient()
{}
TorrentClient::~TorrentClient() {
std::lock_guard<std::mutex> guard(_mutex);
_keepRunning = false;
_torrentThread.join();
_session = nullptr;
}
void TorrentClient::initialize() {