Browse Source

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

git-svn-id: trunk@9267 -
michael 18 years ago
parent
commit
efdddfd82c
1 changed files with 3 additions and 0 deletions
  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;