Skip to content

Commit

Permalink
Improved handling of multiple closes
Browse files Browse the repository at this point in the history
exit:{normal} -> exit:{normal, _} this typo could sometimes cause a crash
when trying to close a channel that was already closed.
  • Loading branch information
IngelaAndin committed Jun 1, 2012
1 parent 61b017b commit 2922ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ssh/src/ssh_connection_manager.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 2922ade

Please sign in to comment.