diff --git a/src/client/DownloadManager.cpp b/src/client/DownloadManager.cpp index b30ef0127..bd356d402 100644 --- a/src/client/DownloadManager.cpp +++ b/src/client/DownloadManager.cpp @@ -38,7 +38,7 @@ void DownloadManager::Shutdown() managerShutdown = true; pthread_mutex_unlock(&downloadAddLock); pthread_mutex_unlock(&downloadLock); - if (downloadThread) + if (downloadThread != 0) pthread_join(downloadThread, NULL); }