kc2g-flex-tools / nDAX

Flex 6xxx DAX (digital audio transport) connector to PulseAudio
MIT License
18 stars 3 forks source link

Possible deadlock at startup #5

Open arodland opened 4 years ago

arodland commented 4 years ago

Easy way to reproduce: run with a -station that doesn't exist; nDAX will hang forever waiting for it to exist, and ^C won't exit.

The SIGINT handler currently only works to exit after we've properly started up, but it should be wired to bail out properly before that. In addition to that, maybe there should be a timeout for the radio / station / slice discovery phases on startup.

All of this would be a good use for contexts.