diff options
author | Niclas Eklund <[email protected]> | 2011-04-20 18:03:43 +0200 |
---|---|---|
committer | Niclas Eklund <[email protected]> | 2011-04-20 18:03:43 +0200 |
commit | 1b4ef1f5dffb5a99244169b7adf315a513795ee7 (patch) | |
tree | 300f092b544d23d7ec21d3b2811646630b81b7c5 /lib/ssh/src/ssh_cli.erl | |
parent | fb1eab890f6776419b3999285dff45802658e8f0 (diff) | |
download | otp-1b4ef1f5dffb5a99244169b7adf315a513795ee7.tar.gz otp-1b4ef1f5dffb5a99244169b7adf315a513795ee7.tar.bz2 otp-1b4ef1f5dffb5a99244169b7adf315a513795ee7.zip |
Added deletion of clients to be used when a session is terminated.
Diffstat (limited to 'lib/ssh/src/ssh_cli.erl')
-rw-r--r-- | lib/ssh/src/ssh_cli.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh_cli.erl b/lib/ssh/src/ssh_cli.erl index cb78acb84c..4bfd680029 100644 --- a/lib/ssh/src/ssh_cli.erl +++ b/lib/ssh/src/ssh_cli.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2005-2010. All Rights Reserved. +%% Copyright Ericsson AB 2005-2011. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -180,7 +180,8 @@ handle_msg(_, State) -> %% Function: terminate(Reason, State) -> void() %% Description: Called when the channel process is trminated %%-------------------------------------------------------------------- -terminate(_Reason, _State) -> +terminate(_Reason, #state{cm = ConnectionManager} = _State) -> + (catch ssh_userreg:delete(ConnectionManager)), ok. %%-------------------------------------------------------------------- |