summaryrefslogtreecommitdiff
path: root/p11p-daemon/src/p11p_remote.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@sunet.se>2019-06-30 16:05:22 +0200
committerLinus Nordberg <linus@sunet.se>2019-06-30 16:05:22 +0200
commitf0afd846071e20c7a3da7911609e3ba51debd52b (patch)
treeda6552b32d11d5e04023dc242841441d741dcdc1 /p11p-daemon/src/p11p_remote.erl
parent9f83e6035743942b58005305f62af9bcceb52341 (diff)
start remotes on demand rather than at manager startup
Also, rotate list of remotes on remote timeout. Still missing: When a remote times out, switch remote under the feet of the client.
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 f7bdcab..e40e2e2 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()]),
- fixme = p11p_remote_manager:timeout(TokName),
+ ok = p11p_remote_manager:timeout(TokName),
NewState = State#state{timer = undefined},
{stop, normal, NewState};
handle_info(Info, State) ->