summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@sunet.se>2019-07-01 15:00:10 +0200
committerLinus Nordberg <linus@sunet.se>2019-07-01 15:00:10 +0200
commit4dbfba56a3442d096cc458d0b34bef1d0a7a85ca (patch)
tree734b34d395a068afe4f7a1078f314410ea5d5622
parent07c6fdfc5fe87a0861cd53eb0bb48e0765978be0 (diff)
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.
-rw-r--r--p11p-daemon/src/p11p_server.erl2
1 files changed, 1 insertions, 1 deletions
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}.