Parcourir la source

* WaitFor when TFileMonitor is disabled

If Enabled = false, the WaitFor in the destructor could not terminate
jkour il y a 1 an
Parent
commit
13ede84dba
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      Quick.FileMonitor.pas

+ 2 - 1
Quick.FileMonitor.pas

@@ -105,7 +105,8 @@ end;
 destructor TFileMonitor.Destroy;
 begin
   if not Terminated then Terminate;
-  Self.WaitFor;
+  if fEnabled then
+    Self.WaitFor;
   fTickEvent.SetEvent;
   fTickEvent.Free;
   inherited;