Explorar el Código

Merge pull request #139 from jkour/WaitFor_in_TFileMonitor

WaitFor in TFileMonitor
Exilon hace 4 semanas
padre
commit
71f9dba15f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;