mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Merge pull request #122 from tuncer/net_kernel
Fix eunit regression introduced in 2716d83a18
This commit is contained in:
commit
adad711d51
1 changed files with 6 additions and 6 deletions
|
@ -802,11 +802,11 @@ pause_until_net_kernel_stopped() ->
|
|||
pause_until_net_kernel_stopped(0) ->
|
||||
exit(net_kernel_stop_failed);
|
||||
pause_until_net_kernel_stopped(N) ->
|
||||
try
|
||||
timer:sleep(100),
|
||||
pause_until_net_kernel_stopped(N - 1)
|
||||
catch
|
||||
error:badarg ->
|
||||
case node() of
|
||||
'nonode@nohost' ->
|
||||
?DEBUG("Stopped net kernel.\n", []),
|
||||
ok
|
||||
ok;
|
||||
_ ->
|
||||
timer:sleep(100),
|
||||
pause_until_net_kernel_stopped(N - 1)
|
||||
end.
|
||||
|
|
Loading…
Reference in a new issue