pi4j-v1 icon indicating copy to clipboard operation
pi4j-v1 copied to clipboard

GPIO Listener delays JVM shutdown

Open mkarg opened this issue 8 years ago • 0 comments

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.

mkarg avatar Sep 19 '17 21:09 mkarg