Browse Source

* WaitFor when TFileMonitor is disabled

If Enabled = false, the WaitFor in the destructor could not terminate
jkour 1 năm trước cách đây
mục cha
commit
13ede84dba
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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;