From 5b5390f822ccc19bf57ec894c87c849f7b22e8d4 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 11 Jun 2016 12:57:13 -0400 Subject: [PATCH] attempted error fix --- src/client/DownloadManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }