summaryrefslogtreecommitdiff
path: root/p11p-daemon/src/p11p_remote.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@sunet.se>2019-06-30 23:22:02 +0200
committerLinus Nordberg <linus@sunet.se>2019-06-30 23:22:02 +0200
commitcf495efa541318719f1d8eeddecad96e6091aa0c (patch)
tree02907a21404051ef32e63bbcbcb06dbe533fb5b1 /p11p-daemon/src/p11p_remote.erl
parenta0a85e3c0fe9ade9fb3c9171e99e2c8d0308293f (diff)
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.
Diffstat (limited to 'p11p-daemon/src/p11p_remote.erl')
-rw-r--r--p11p-daemon/src/p11p_remote.erl2
1 files changed, 1 insertions, 1 deletions
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) ->