summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2012-12-05 12:15:56 +0000
committerTim Watson <tim@rabbitmq.com>2012-12-05 12:15:56 +0000
commit6299f9673cdffdf2f8a5973a5f61f00949fc881f (patch)
tree8202bb51ad7b67d64c2de93a72b52cb13d196a09 /src
parent8884581308663f55aad4cc9a1097e2c3d1b4de27 (diff)
downloadrabbitmq-server-git-6299f9673cdffdf2f8a5973a5f61f00949fc881f.tar.gz
infinity is always a valid shutdown reason
Diffstat (limited to 'src')
-rw-r--r--src/supervisor2.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervisor2.erl b/src/supervisor2.erl
index 8d6eaa371c..f0182822f9 100644
--- a/src/supervisor2.erl
+++ b/src/supervisor2.erl
@@ -1428,7 +1428,7 @@ validDelay(What) -> throw({invalid_delay, What}).
validShutdown(Shutdown, _)
when is_integer(Shutdown), Shutdown > 0 -> true;
-validShutdown(infinity, supervisor) -> true;
+validShutdown(infinity, _) -> true;
validShutdown(brutal_kill, _) -> true;
validShutdown(Shutdown, _) -> throw({invalid_shutdown, Shutdown}).