summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-01-05 17:20:48 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-01-05 17:20:48 +0000
commit5647fe828c869fbe9d2b5f6b922f1b271da46faf (patch)
tree9e32efecb669b807792751d7141dc8ce77969979 /src
parent8bce43ad9fbc9b3fdfe7550cf1e34de2e4ab2ebd (diff)
downloadrabbitmq-server-git-5647fe828c869fbe9d2b5f6b922f1b271da46faf.tar.gz
Dialyzer fixes.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_networking.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl
index ceb2196d6c..621343c488 100644
--- a/src/rabbit_networking.erl
+++ b/src/rabbit_networking.erl
@@ -66,7 +66,8 @@
-export_type([ip_port/0, hostname/0]).
-type(family() :: atom()).
--type(listener_config() :: {hostname(), ip_port()} |
+-type(listener_config() :: ip_port() |
+ {hostname(), ip_port()} |
{hostname(), ip_port(), family()}).
-spec(start/0 :: () -> 'ok').
@@ -225,13 +226,13 @@ start_listener0({IPAddress, Port, Family, Name}, Protocol, Label, OnConnect) ->
stop_tcp_listener(Listener) ->
[stop_tcp_listener0(Spec) ||
- Spec <- check_tcp_listener_address(rabbit_tcp_listener_sup, Listener)].
+ Spec <- check_tcp_listener_address(rabbit_tcp_listener_sup, Listener)],
+ ok.
stop_tcp_listener0({IPAddress, Port, _Family, Name}) ->
Name = rabbit_misc:tcp_name(rabbit_tcp_listener_sup, IPAddress, Port),
ok = supervisor:terminate_child(rabbit_sup, Name),
- ok = supervisor:delete_child(rabbit_sup, Name),
- ok.
+ ok = supervisor:delete_child(rabbit_sup, Name).
tcp_listener_started(Protocol, IPAddress, Port) ->
%% We need the ip to distinguish e.g. 0.0.0.0 and 127.0.0.1