diff options
author | Anupama Singh <anupamasingh31@gmail.com> | 2022-11-17 15:07:31 +0100 |
---|---|---|
committer | Anupama Singh <anupamasingh31@gmail.com> | 2022-11-17 15:11:46 +0100 |
commit | 6c0df956c7e20c9deebcc94df99debafd38bd2cf (patch) | |
tree | bc616693527dcbd76d8e1238bcee1569eb2d2a6f /lib/ssh/src | |
parent | 38ad8e28421c745c06ef9bd55f6e6204cd1f15ef (diff) | |
download | erlang-6c0df956c7e20c9deebcc94df99debafd38bd2cf.tar.gz |
graceful shutdown of ssh_conection_handler when connection is closed by peer
Diffstat (limited to 'lib/ssh/src')
-rw-r--r-- | lib/ssh/src/ssh_connection_handler.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl index 849f4b46d2..10eb5e88b4 100644 --- a/lib/ssh/src/ssh_connection_handler.erl +++ b/lib/ssh/src/ssh_connection_handler.erl @@ -421,7 +421,7 @@ init([Role, Socket, Opts]) when Role==client ; Role==server -> end; {error,Error} -> - {stop, {error,Error}} + {stop, {shutdown,Error}} end. %%%---------------------------------------------------------------- |