pi4j-v1
pi4j-v1 copied to clipboard
GPIO Listener delays JVM shutdown
Registering GPIO listeners make JVM shutdown delayed: The internally used executor has a default timeout of 60s, so when the main thread has nothing more to do, the JVM does not exit, but waits one minute. This is not nice. Unfortunately, PI4J prevents explicit shutdown of the executor.
A possible solution could be to reduce the timeout to e. g. few seconds.