Ignore:
Timestamp:
Dec 27, 2017, 7:41:26 PM (6 years ago)
Author:
chronos
Message:
  • Fixed: Terminate correctly running apps before scheduler stopped.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Platform/Base/UPlatformBase.pas

    r13 r14  
    263263begin
    264264  inherited Stop;
    265   for I := 0 to Tasks.Count - 1 do
     265  for I := 0 to Tasks.Count - 1 do begin
    266266    TBaseTask(Tasks[I]).Terminated := True;
     267    TBaseTask(Tasks[I]).Thread.WaitFor;
     268  end;
    267269end;
    268270
Note: See TracChangeset for help on using the changeset viewer.