Skip to content

Commit

Permalink
Do not restart game servers when they crash
Browse files Browse the repository at this point in the history
  • Loading branch information
alecho committed Sep 30, 2019
1 parent aafe7f3 commit 5fa1a2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/chex/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ defmodule Chex.Application do

def start(_type, _args) do
children = [
{DynamicSupervisor, strategy: :one_for_one, name: Chex.DynamicGameServerSupervisor}
{DynamicSupervisor,
strategy: :one_for_one, restart: :temporary, name: Chex.DynamicGameServerSupervisor}
]

Supervisor.start_link(children, strategy: :one_for_one)
Expand Down

0 comments on commit 5fa1a2f

Please sign in to comment.