diff --git a/Quick.FileMonitor.pas b/Quick.FileMonitor.pas index 791ce89..e4bd9c7 100644 --- a/Quick.FileMonitor.pas +++ b/Quick.FileMonitor.pas @@ -105,7 +105,8 @@ constructor TFileMonitor.Create; destructor TFileMonitor.Destroy; begin if not Terminated then Terminate; - Self.WaitFor; + if fEnabled then + Self.WaitFor; fTickEvent.SetEvent; fTickEvent.Free; inherited;