From 4dbfba56a3442d096cc458d0b34bef1d0a7a85ca Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Mon, 1 Jul 2019 15:00:10 +0200 Subject: stop server with reason normal I'm starting to think that 'shutdown' means that we're shutting down the application. Anyhow, we're not using this information, other than for debug printouts, which we can do explicitly instead. --- p11p-daemon/src/p11p_server.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p11p-daemon/src') diff --git a/p11p-daemon/src/p11p_server.erl b/p11p-daemon/src/p11p_server.erl index a6e08a9..c0f4976 100644 --- a/p11p-daemon/src/p11p_server.erl +++ b/p11p-daemon/src/p11p_server.erl @@ -88,7 +88,7 @@ handle_info({tcp, _Port, Data}, #state{msg = Msg} = State) -> {noreply, handle_client_data(State, Msg, Data)}; handle_info({tcp_closed, Port}, State) -> lager:debug("~p: socket ~p closed", [self(), Port]), - {stop, {shutdown, close_by_client}, State}; + {stop, normal, State}; handle_info(Info, State) -> lager:debug("~p: Unhandled info: ~p~n", [self(), Info]), {noreply, State}. -- cgit v1.1