diff options
author | Hans Nilsson <[email protected]> | 2018-05-16 13:45:30 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2018-05-16 15:34:30 +0200 |
commit | bf852e0a6f893efbbaa9ef4927ec6ba7ba80c101 (patch) | |
tree | b8e69ef49d1a7d5ea377a0a9c8878f523f811977 | |
parent | 84e655feccb4780b8db17a42549b35ded03baf1a (diff) | |
download | otp-bf852e0a6f893efbbaa9ef4927ec6ba7ba80c101.tar.gz otp-bf852e0a6f893efbbaa9ef4927ec6ba7ba80c101.tar.bz2 otp-bf852e0a6f893efbbaa9ef4927ec6ba7ba80c101.zip |
ssh: Terminate reason was always the name of the called callback module
-rw-r--r-- | lib/ssh/src/ssh_client_channel.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh_client_channel.erl b/lib/ssh/src/ssh_client_channel.erl index f20007baaf..134d3f08bd 100644 --- a/lib/ssh/src/ssh_client_channel.erl +++ b/lib/ssh/src/ssh_client_channel.erl @@ -305,8 +305,8 @@ terminate(Reason, #state{cm = ConnectionManager, close_sent = false} = State) -> catch ssh_connection:close(ConnectionManager, ChannelId), terminate(Reason, State#state{close_sent = true}); -terminate(_, #state{channel_cb = Cb, channel_state = ChannelState}) -> - catch Cb:terminate(Cb, ChannelState), +terminate(Reason, #state{channel_cb = Cb, channel_state = ChannelState}) -> + catch Cb:terminate(Reason, ChannelState), ok. %%-------------------------------------------------------------------- |