From 5fa1a2f4895d3c9b7338463e125438f9822490a4 Mon Sep 17 00:00:00 2001 From: Andrew Lechowicz Date: Mon, 30 Sep 2019 13:50:53 -0400 Subject: [PATCH] Do not restart game servers when they crash --- lib/chex/application.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/chex/application.ex b/lib/chex/application.ex index 0836475..f547167 100644 --- a/lib/chex/application.ex +++ b/lib/chex/application.ex @@ -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)