소스 검색

* WaitFor when TFileMonitor is disabled

If Enabled = false, the WaitFor in the destructor could not terminate
jkour 1 년 전
부모
커밋
13ede84dba
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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;