diff options
author | Fredrik Gustafsson <[email protected]> | 2012-11-05 11:39:12 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2012-11-05 11:39:12 +0100 |
commit | 104d902c2e325060ab66abc05a449194792dee7a (patch) | |
tree | 2f2c79d211bbfabf5d88a92ebce87b1433b0fb1c /lib/ssh/src/ssh_connection_manager.erl | |
parent | 9c9e054f56b9bf05dfca8697e5df318e2ce6a3cd (diff) | |
download | otp-104d902c2e325060ab66abc05a449194792dee7a.tar.gz otp-104d902c2e325060ab66abc05a449194792dee7a.tar.bz2 otp-104d902c2e325060ab66abc05a449194792dee7a.zip |
Not start the idle timer on connect
Diffstat (limited to 'lib/ssh/src/ssh_connection_manager.erl')
-rw-r--r-- | lib/ssh/src/ssh_connection_manager.erl | 5 |
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 |