From 104d902c2e325060ab66abc05a449194792dee7a Mon Sep 17 00:00:00 2001 From: Fredrik Gustafsson Date: Mon, 5 Nov 2012 11:39:12 +0100 Subject: Not start the idle timer on connect --- lib/ssh/src/ssh_connection_manager.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/ssh') diff --git a/lib/ssh/src/ssh_connection_manager.erl b/lib/ssh/src/ssh_connection_manager.erl index 9a96542505..1384740bfa 100644 --- a/lib/ssh/src/ssh_connection_manager.erl +++ b/lib/ssh/src/ssh_connection_manager.erl @@ -605,9 +605,8 @@ get_idle_time(SshOptions) -> case proplists:get_value(idle_time, SshOptions) of infinity -> infinity; - IdleTime -> - TimerRef = erlang:send_after(IdleTime, self(), {'EXIT', [], "Timeout"}), - TimerRef + _IdleTime -> %% We dont want to set the timeout on first connect + undefined end. check_cache(State, Cache) -> %% Check the number of entries in Cache -- cgit v1.2.3