aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ssh')
-rw-r--r--lib/ssh/src/ssh_connection_manager.erl5
1 files changed, 2 insertions, 3 deletions
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