Skip to content

Commit

Permalink
Removed return of force exit task in coordinated shutdown, which caus…
Browse files Browse the repository at this point in the history
  • Loading branch information
mwpro authored and madmonkey committed Jul 12, 2019
1 parent 9b2b0d1 commit 9ba8c87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/Akka/Actor/CoordinatedShutdown.cs
Expand Up @@ -626,13 +626,12 @@ internal static void InitPhaseActorSystemTerminate(ActorSystem system, Config co
// We must spawn a separate Task to not block current thread,
// since that would have blocked the shutdown of the ActorSystem.
var timeout = coord.Timeout(PhaseActorSystemTerminate);
return Task.Run(() =>
Task.Run(() =>
{
if (!system.WhenTerminated.Wait(timeout) && !coord._runningClrHook)
{
Environment.Exit(0);
}
return Done.Instance;
});
}
Expand Down

0 comments on commit 9ba8c87

Please sign in to comment.