Explorar o código

* Fix for bug #18044

git-svn-id: trunk@16445 -
michael %!s(int64=15) %!d(string=hai) anos
pai
achega
74098a8f7d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      packages/fcl-base/src/fptimer.pp

+ 2 - 0
packages/fcl-base/src/fptimer.pp

@@ -253,6 +253,8 @@ Procedure TFPThreadedTimerDriver.StopTimer;
 begin
   FThread.FTimerDriver:=Nil;
   FThread.Terminate; // Will free itself.
+  FThread:=Nil;
+  CheckSynchronize; // make sure thread is not stuck at synchronize call.
 end;