SoundCard icon indicating copy to clipboard operation
SoundCard copied to clipboard

import hanging indefinitely if pulseaudio daemon is down

Open lucastcox opened this issue 5 years ago • 1 comments

The issue lies in this code

If I

 import soundcard as sc 

and pulseaudio is not running, it will hang indefinitely while importing because of the the while loop. It might not be a bad idea to specify a maximum timeout and throw an exception if pulseaudio is unavailable.

lucastcox avatar Feb 10 '20 16:02 lucastcox

Good idea! Would you like to contribute a pull request?

bastibe avatar Feb 11 '20 08:02 bastibe