Handle exit properly in session_server
This commit is contained in:
parent
727c0aedd6
commit
236eed5505
@ -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}.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user