diff options
author | Linus Nordberg <linus@sunet.se> | 2019-06-30 23:22:02 +0200 |
---|---|---|
committer | Linus Nordberg <linus@sunet.se> | 2019-06-30 23:22:02 +0200 |
commit | cf495efa541318719f1d8eeddecad96e6091aa0c (patch) | |
tree | 02907a21404051ef32e63bbcbcb06dbe533fb5b1 /p11p-daemon/src/p11p_remote.erl | |
parent | a0a85e3c0fe9ade9fb3c9171e99e2c8d0308293f (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.erl | 2 |
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) -> |