summaryrefslogtreecommitdiff
path: root/src/rabbit_net.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-03-07 16:05:56 +0000
committerSimon MacMullen <simon@rabbitmq.com>2012-03-07 16:05:56 +0000
commit58994e811249948144d55c0b060adcf254b32bd8 (patch)
tree9ba78ce2daf7eaf343eeb4108b6110b361b8fbba /src/rabbit_net.erl
parent172ea8f405dc86b2d6873b8fe1852024e18ee799 (diff)
downloadrabbitmq-server-58994e811249948144d55c0b060adcf254b32bd8.tar.gz
Ahem.
Diffstat (limited to 'src/rabbit_net.erl')
-rw-r--r--src/rabbit_net.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_net.erl b/src/rabbit_net.erl
index d14dcbcf..e6a05335 100644
--- a/src/rabbit_net.erl
+++ b/src/rabbit_net.erl
@@ -138,7 +138,7 @@ close(Sock) when ?IS_SSL(Sock) -> ssl:close(Sock#ssl_socket.ssl);
close(Sock) when is_port(Sock) -> gen_tcp:close(Sock).
maybe_fast_close(Sock) when ?IS_SSL(Sock) -> ok;
-maybe_fast_close(Sock) when is_port(Sock) -> erlang:port_close(Sock).
+maybe_fast_close(Sock) when is_port(Sock) -> erlang:port_close(Sock), ok.
sockname(Sock) when ?IS_SSL(Sock) -> ssl:sockname(Sock#ssl_socket.ssl);
sockname(Sock) when is_port(Sock) -> inet:sockname(Sock).