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

git-svn-id: trunk@9267 -
This commit is contained in:
michael 2007-11-17 12:42:02 +00:00
parent cb9608c149
commit efdddfd82c

View File

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