Skip to content

Commit

Permalink
small bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
exilon committed Mar 4, 2019
1 parent a9d031a commit 253c7e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Quick.Threads.pas
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Author : Kike Pérez
Version : 1.4
Created : 09/03/2018
Modified : 28/02/2019
Modified : 04/03/2019
This file is part of QuickLib: https://github.com/exilon/QuickLib
Expand Down Expand Up @@ -1140,7 +1140,7 @@ procedure TWorker.TerminateTask;
procedure TWorker.Execute;
begin
fStatus := TWorkerStatus.wsIdle;
while (not Terminated) and (fTaskQueue.QueueSize > 0) do
while not Terminated do
begin
fCurrentTask := fTaskQueue.PopItem;
if fCurrentTask <> nil then
Expand Down Expand Up @@ -1193,7 +1193,7 @@ function TScheduledTasks.AddTask_Sync(const aTaskName: string; aParamArray: arra

function TScheduledTasks.AddTask_Sync(const aTaskName: string; aTaskProc: TTaskProc): IScheduledTask;
begin
Result := AddTask_Sync(aTaskName,aTaskProc);
Result := AddTask_Sync(aTaskName,[],False,aTaskProc);
end;

constructor TScheduledTasks.Create;
Expand Down

0 comments on commit 253c7e2

Please sign in to comment.