mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 12:39:24 -05:00
Thread safety for torrent client
This commit is contained in:
@@ -57,8 +57,10 @@ TorrentClient::TorrentClient()
|
||||
{}
|
||||
|
||||
TorrentClient::~TorrentClient() {
|
||||
std::lock_guard<std::mutex> guard(_mutex);
|
||||
_keepRunning = false;
|
||||
_torrentThread.join();
|
||||
_session = nullptr;
|
||||
}
|
||||
|
||||
void TorrentClient::initialize() {
|
||||
|
||||
Reference in New Issue
Block a user