File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -4858,7 +4858,11 @@ Recycler::FinalizeConcurrent(bool restoreState)
4858
4858
}
4859
4859
4860
4860
this ->threadService = nullptr ;
4861
- this ->concurrentThread = nullptr ;
4861
+ if (concurrentThread != NULL )
4862
+ {
4863
+ CloseHandle (concurrentThread);
4864
+ this ->concurrentThread = nullptr ;
4865
+ }
4862
4866
}
4863
4867
4864
4868
bool
@@ -4990,10 +4994,6 @@ Recycler::ShutdownThread()
4990
4994
Assert (concurrentThread != NULL || threadService->HasCallback ());
4991
4995
4992
4996
FinalizeConcurrent (false );
4993
- if (concurrentThread)
4994
- {
4995
- CloseHandle (concurrentThread);
4996
- }
4997
4997
}
4998
4998
}
4999
4999
@@ -5005,10 +5005,6 @@ Recycler::DisableConcurrent()
5005
5005
Assert (concurrentThread != NULL || threadService->HasCallback ());
5006
5006
5007
5007
FinalizeConcurrent (true );
5008
- if (concurrentThread)
5009
- {
5010
- CloseHandle (concurrentThread);
5011
- }
5012
5008
this ->collectionState = CollectionStateNotCollecting;
5013
5009
}
5014
5010
}
You can’t perform that action at this time.
0 commit comments