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

GPIOExample sample program does not exit #4

Closed
HBrydon opened this issue Nov 11, 2012 · 3 comments
Closed

GPIOExample sample program does not exit #4

HBrydon opened this issue Nov 11, 2012 · 3 comments
Labels
Milestone

Comments

@HBrydon
Copy link

HBrydon commented Nov 11, 2012

When running GPIOExample, it operates as desired (ie. it flashes the LED as described) but the program does not exit. A Ctrl-C (or equiv) is required to terminate the program. This doesn't seem like the intended behavior.

Thanks for taking the time to write this code and do the web page. Excellent stuff, greatly appreciated!

@savageautomate
Copy link
Member

Thank you for writing up this defect report. I have seen that behavior and I need to look into the issue further and get it fixed. No that is not the intended behavior. I think there is probably a scheduled executor thread still running in the background. I need to dig deeper into this one. Thanks, Robert

@savageautomate
Copy link
Member

Fixed in 0.0.4-SNAPSHOT. The "GpioScheduledExecutorImpl" thread pool was not being shutdown properly on queued task completion.

@savageautomate
Copy link
Member

The new 0.0.4-SNAPSHOT build is available for testing.

You can download it from the Maven repository here:
https://oss.sonatype.org/content/groups/public/com/pi4j/pi4j-core/0.0.4-SNAPSHOT/

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

No branches or pull requests

2 participants