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/Protocol/Authenticator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Protocol/Authenticator.cpp') diff --git a/src/Protocol/Authenticator.cpp b/src/Protocol/Authenticator.cpp index 445a3dff5..da4685635 100644 --- a/src/Protocol/Authenticator.cpp +++ b/src/Protocol/Authenticator.cpp @@ -77,7 +77,6 @@ void cAuthenticator::Authenticate(int a_ClientID, const AString & a_UserName, co void cAuthenticator::Start(cSettingsRepositoryInterface & a_Settings) { ReadSettings(a_Settings); - m_ShouldTerminate = false; super::Start(); } @@ -89,7 +88,7 @@ void cAuthenticator::Stop(void) { m_ShouldTerminate = true; m_QueueNonempty.Set(); - Wait(); + super::Stop(); } -- cgit v1.2.3