Skip to content
Permalink
Browse files
Merge pull request #205 from choptastic/exit_if_inval
Don't crash if a socket is closed server side
  • Loading branch information
etrepum committed Sep 26, 2018
2 parents f783581 + 0f543ed commit 9608d786efe474b862d3399d99c200bd36fc8942
Showing 1 changed file with 2 additions and 0 deletions.
@@ -144,5 +144,7 @@ type(_) ->

exit_if_closed({error, closed}) ->
exit(normal);
exit_if_closed({error, einval}) ->
exit(normal);
exit_if_closed(Res) ->
Res.

0 comments on commit 9608d78

Please sign in to comment.