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 | 598b0e0f907ea6e51241d7858eab04acc6830fbf (patch) | |
| tree | 8202bb51ad7b67d64c2de93a72b52cb13d196a09 | |
| parent | 9e7064134d5c71a208bd8e4cb2f13fd8e186fa12 (diff) | |
| download | rabbitmq-server-598b0e0f907ea6e51241d7858eab04acc6830fbf.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 8d6eaa37..f0182822 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}). |
