aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/supervisor.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-04-25 11:07:25 +0200
committerHans Bolinder <[email protected]>2013-05-06 12:14:12 +0200
commit406413f90cc5d45e17df158b9e742112e9f7657e (patch)
treedb3190c95ab4229890f374b4a33b8c26fce473a2 /lib/stdlib/src/supervisor.erl
parent21a7806986d58480367cff8d385a12f9659c7754 (diff)
downloadotp-406413f90cc5d45e17df158b9e742112e9f7657e.tar.gz
otp-406413f90cc5d45e17df158b9e742112e9f7657e.tar.bz2
otp-406413f90cc5d45e17df158b9e742112e9f7657e.zip
Fix unmatched_return warnings in stdlib
Diffstat (limited to 'lib/stdlib/src/supervisor.erl')
-rw-r--r--lib/stdlib/src/supervisor.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/stdlib/src/supervisor.erl b/lib/stdlib/src/supervisor.erl
index 26821e0e09..d18387568d 100644
--- a/lib/stdlib/src/supervisor.erl
+++ b/lib/stdlib/src/supervisor.erl
@@ -758,7 +758,10 @@ restart(Child, State) ->
[self(),Id]),
{ok,NState2};
{try_again, NState2, #child{name=ChName}} ->
- timer:apply_after(0,?MODULE,try_again_restart,[self(),ChName]),
+ {ok, _TRef} = timer:apply_after(0,
+ ?MODULE,
+ try_again_restart,
+ [self(),ChName]),
{ok,NState2};
Other ->
Other