diff options
| author | Tim Watson <tim@rabbitmq.com> | 2012-12-05 12:15:56 +0000 |
|---|---|---|
| committer | Tim Watson <tim@rabbitmq.com> | 2012-12-05 12:15:56 +0000 |
| commit | 6299f9673cdffdf2f8a5973a5f61f00949fc881f (patch) | |
| tree | 8202bb51ad7b67d64c2de93a72b52cb13d196a09 | |
| parent | 8884581308663f55aad4cc9a1097e2c3d1b4de27 (diff) | |
| download | rabbitmq-server-git-6299f9673cdffdf2f8a5973a5f61f00949fc881f.tar.gz | |
infinity is always a valid shutdown reason
| -rw-r--r-- | src/supervisor2.erl | 2 |
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}). |
