Quellcode durchsuchen

* WaitFor when TFileMonitor is disabled

If Enabled = false, the WaitFor in the destructor could not terminate
jkour vor 1 Jahr
Ursprung
Commit
13ede84dba
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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;