summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/IsThread.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-20 19:29:29 +0200
committermadmaxoft <github@xoft.cz>2013-08-20 19:29:29 +0200
commit40cb30b6a576ecdcf446377b755ed70a87b9be28 (patch)
tree1d4ff05cc3a293ad0091fa45f1359b1a569c5fa1 /source/OSSupport/IsThread.cpp
parentStarted work on the cProjectileEntity class. (diff)
downloadcuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.tar
cuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.tar.gz
cuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.tar.bz2
cuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.tar.lz
cuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.tar.xz
cuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.tar.zst
cuberite-40cb30b6a576ecdcf446377b755ed70a87b9be28.zip
Diffstat (limited to 'source/OSSupport/IsThread.cpp')
-rw-r--r--source/OSSupport/IsThread.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/OSSupport/IsThread.cpp b/source/OSSupport/IsThread.cpp
index 45e329a68..1fadb3769 100644
--- a/source/OSSupport/IsThread.cpp
+++ b/source/OSSupport/IsThread.cpp
@@ -147,6 +147,7 @@ bool cIsThread::Wait(void)
int res = pthread_join(m_Handle, NULL);
m_Handle = NULL;
LOGD("Thread %s finished", m_ThreadName.c_str());
+ m_HasStarted = false;
return (res == 0);
#endif // else _WIN32
}