From cf495efa541318719f1d8eeddecad96e6091aa0c Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sun, 30 Jun 2019 23:22:02 +0200 Subject: rename manager functions to reflect where the policy lives Servers and remotes (soon renamed "clients") are not the ones implementing policy. They should therefore report events to the manager which then imposes policy. --- p11p-daemon/src/p11p_remote.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p11p-daemon/src/p11p_remote.erl') diff --git a/p11p-daemon/src/p11p_remote.erl b/p11p-daemon/src/p11p_remote.erl index 200afdc..12f513d 100644 --- a/p11p-daemon/src/p11p_remote.erl +++ b/p11p-daemon/src/p11p_remote.erl @@ -78,7 +78,7 @@ handle_info({Port, {data, Data}}, #state{msg = Msg} = State) when Port == State# {noreply, handle_remote_data(State, Msg, Data)}; handle_info({timeout, Timer, Port}, #state{token = TokName} = State) when Port == State#state.port, Timer == State#state.timer -> lager:info("~p: rpc request timed out, exiting", [self()]), - ok = p11p_remote_manager:timeout(TokName), + ok = p11p_remote_manager:server_change(timeout, [TokName]), NewState = State#state{timer = undefined}, {stop, normal, NewState}; handle_info(Info, State) -> -- cgit v1.1