diff options
author | Siri Hansen <[email protected]> | 2013-04-25 16:14:10 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2013-05-06 12:14:13 +0200 |
commit | f52452309cf68da898a1768eb6e8b6767e602bc7 (patch) | |
tree | c24a32ecedfd7f4baaa3c8f4e9e474a7dbef738b /lib/kernel/src/kernel_config.erl | |
parent | 88eea0e9a22099a1425553381cfb72f646cb2abf (diff) | |
download | otp-f52452309cf68da898a1768eb6e8b6767e602bc7.tar.gz otp-f52452309cf68da898a1768eb6e8b6767e602bc7.tar.bz2 otp-f52452309cf68da898a1768eb6e8b6767e602bc7.zip |
Fix unmatched_return warnings in kernel
Diffstat (limited to 'lib/kernel/src/kernel_config.erl')
-rw-r--r-- | lib/kernel/src/kernel_config.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/kernel/src/kernel_config.erl b/lib/kernel/src/kernel_config.erl index 48141cfa03..56defcb167 100644 --- a/lib/kernel/src/kernel_config.erl +++ b/lib/kernel/src/kernel_config.erl @@ -121,7 +121,7 @@ send_timeout(Timeout, Pid) -> end. wait_nodes(Mandatory, Optional) -> - net_kernel:monitor_nodes(true), + ok = net_kernel:monitor_nodes(true), lists:foreach(fun(Node) -> case net_adm:ping(Node) of pong -> self() ! {nodeup, Node}; @@ -129,7 +129,9 @@ wait_nodes(Mandatory, Optional) -> end end, Mandatory ++ Optional), - rec_nodes(Mandatory, Optional). + R = rec_nodes(Mandatory, Optional), + ok = net_kernel:monitor_nodes(false), + R. rec_nodes([], []) -> ok; rec_nodes(Mandatory, Optional) -> |