From 7b431bed513db3318811698029304d81e5831ab3 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Sun, 22 Jul 2018 22:35:58 +0100 Subject: cIsThread: Reset m_ShouldTerminate after the thread has stopped (#4258) This allows threads to be restarted after stopping. Fixes #4257 --- src/ChunkSender.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/ChunkSender.cpp') diff --git a/src/ChunkSender.cpp b/src/ChunkSender.cpp index 60f9d8c68..aa51ed4ed 100644 --- a/src/ChunkSender.cpp +++ b/src/ChunkSender.cpp @@ -79,21 +79,11 @@ cChunkSender::~cChunkSender() -bool cChunkSender::Start() -{ - m_ShouldTerminate = false; - return super::Start(); -} - - - - - void cChunkSender::Stop(void) { m_ShouldTerminate = true; m_evtQueue.Set(); - Wait(); + super::Stop(); } -- cgit v1.2.3