bluez5: fix ofono transport acquire

This commit is contained in:
Pauli Virtanen 2021-03-20 18:14:32 +02:00 committed by Wim Taymans
parent b7a1f11842
commit eb9b787db1

View file

@ -193,7 +193,7 @@ static int ofono_audio_acquire(void *data, bool optional)
uint8_t codec;
int ret = 0;
if (transport->fd)
if (transport->fd >= 0)
goto finish;
ret = _audio_acquire(backend, transport->path, &codec);