aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2012-11-05 11:39:12 +0100
committerFredrik Gustafsson <[email protected]>2012-11-05 11:39:12 +0100
commit104d902c2e325060ab66abc05a449194792dee7a (patch)
tree2f2c79d211bbfabf5d88a92ebce87b1433b0fb1c
parent9c9e054f56b9bf05dfca8697e5df318e2ce6a3cd (diff)
downloadotp-104d902c2e325060ab66abc05a449194792dee7a.tar.gz
otp-104d902c2e325060ab66abc05a449194792dee7a.tar.bz2
otp-104d902c2e325060ab66abc05a449194792dee7a.zip
Not start the idle timer on connect
-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