Handle exit properly in session_server

This commit is contained in:
Camden Dixie O'Brien 2025-02-25 22:05:06 +00:00
parent 727c0aedd6
commit 236eed5505

View File

@ -32,6 +32,10 @@ handle_info({ssl, Socket, Data}, State) ->
ok ok
end, end,
{noreply, State}; {noreply, State};
handle_info({ssl_closed, _Socket}, State) ->
{stop, normal, State};
handle_info({ssl_error, _Socket, _Reason}, State) ->
{stop, normal, State};
handle_info(_Info, State) -> handle_info(_Info, State) ->
{noreply, State}. {noreply, State}.