fix(volume): Do not require pending events when querying for headphones

This commit is contained in:
Michael Carlberg 2016-06-02 19:00:04 +02:00
parent 8c8d5bc4a8
commit 20ebe00656

View File

@ -75,9 +75,6 @@ namespace alsa
{ {
int err; int err;
if (!this->wait(0))
return false;
if ((err = snd_hctl_elem_read(this->elem, this->value)) < 0) if ((err = snd_hctl_elem_read(this->elem, this->value)) < 0)
throw ControlInterfaceError(err, "Could not read control value: "+ STRSNDERR(err)); throw ControlInterfaceError(err, "Could not read control value: "+ STRSNDERR(err));