mirror of
https://github.com/apache/nifi.git
synced 2025-02-19 17:04:58 +00:00
NIFI-145: Fixed stack trace that occassionally occurs on shutdown
This commit is contained in:
parent
97f8ab0cc5
commit
f63cd9a15e
@ -397,7 +397,11 @@ public class RunNiFi {
|
||||
} catch (final InterruptedException ie) {
|
||||
}
|
||||
} else {
|
||||
runtime.removeShutdownHook(shutdownHook);
|
||||
try {
|
||||
runtime.removeShutdownHook(shutdownHook);
|
||||
} catch (final IllegalStateException ise) {
|
||||
// happens when already shutting down
|
||||
}
|
||||
|
||||
if (autoRestartNiFi) {
|
||||
System.out.println("Apache NiFi appears to have died. Restarting...");
|
||||
|
Loading…
x
Reference in New Issue
Block a user