You need to change that line to GenServer.start_link(__MODULE__, nil) so that your process is linked to the supervisor.
The
start_link/1function must return{:ok, pid}wherepidis the process identifier of a new process that is linked to the supervisor.


















