浏览代码

* Patch from Steve Howe so daemon thread does not consume all CPU

git-svn-id: trunk@9267 -
michael 18 年之前
父节点
当前提交
efdddfd82c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/fcl-base/src/inc/daemonapp.pp

+ 3 - 0
packages/fcl-base/src/inc/daemonapp.pp

@@ -1137,7 +1137,10 @@ begin
     if not FDaemon.Execute then
       begin
       While Not Terminated do
+        begin
         CheckControlMessage(True);
+        Sleep(50);
+        end;
       CheckControlMessage(False);
       end;
     end;