aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2012-06-01 15:02:11 +0200
committerIngela Anderton Andin <[email protected]>2012-06-01 15:02:11 +0200
commit2922ade39abe53463435182d13c8b0da8d375847 (patch)
treeb0578cbf531365262c6f8afc3dc0d9a19eea7227
parent61b017b0e404f7ffbdbcb3106fcfb952dd5a6207 (diff)
downloadotp-2922ade39abe53463435182d13c8b0da8d375847.tar.gz
otp-2922ade39abe53463435182d13c8b0da8d375847.tar.bz2
otp-2922ade39abe53463435182d13c8b0da8d375847.zip
Improved handling of multiple closes
exit:{normal} -> exit:{normal, _} this typo could sometimes cause a crash when trying to close a channel that was already closed.
-rw-r--r--lib/ssh/src/ssh_connection_manager.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_connection_manager.erl b/lib/ssh/src/ssh_connection_manager.erl
index a0ea04a2c2..e53cd4f4f7 100644
--- a/lib/ssh/src/ssh_connection_manager.erl
+++ b/lib/ssh/src/ssh_connection_manager.erl
@@ -586,7 +586,7 @@ call(Pid, Msg, Timeout) ->
catch
exit:{timeout, _} ->
{error, timeout};
- exit:{normal} ->
+ exit:{normal, _} ->
{error, channel_closed};
exit:{{shutdown, _}, _} ->
{error, channel_closed};