Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

GPIO Listener delays JVM shutdown #373

Open
mkarg opened this issue Sep 19, 2017 · 0 comments
Open

GPIO Listener delays JVM shutdown #373

mkarg opened this issue Sep 19, 2017 · 0 comments

Comments

@mkarg
Copy link

mkarg commented Sep 19, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant