From 2922ade39abe53463435182d13c8b0da8d375847 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Fri, 1 Jun 2012 15:02:11 +0200 Subject: 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. --- lib/ssh/src/ssh_connection_manager.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ssh') 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}; -- cgit v1.2.3