Skip to content

Commit

Permalink
Quick.Threads little fix
Browse files Browse the repository at this point in the history
  • Loading branch information
exilon committed Jan 24, 2019
1 parent 8adddd8 commit 463ee9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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 : 21/01/2019
Modified : 24/01/2019
This file is part of QuickLib: https://github.com/exilon/QuickLib
Expand Down Expand Up @@ -1223,6 +1223,7 @@ function TScheduledTasks.GetTask(aIdTask: Int64): IScheduledTask;

function TScheduledTasks.GetTask(const aTaskName: string): IScheduledTask;
begin
if not Assigned(fScheduler) then raise Exception.Create('Scheduler must be started to get a task!');
Result := fScheduler.Get(aTaskName);
end;

Expand Down

0 comments on commit 463ee9f

Please sign in to comment.