audio/jack: do not remove ports when finishing
commitde82640843769e84139b5b5a8ed60b076f0bcabe
authorGeoffrey McRae <geoff@hostfission.com>
Sat, 13 Jun 2020 04:05:16 +0000 (13 14:05 +1000)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 17 Jun 2020 12:44:51 +0000 (17 14:44 +0200)
treef9be77bf9dc8c16e86f695495c9335ce1c8e37ec
parentf8f0f218d4212598eab6c824754cfc40d4961ab7
audio/jack: do not remove ports when finishing

This fixes a hang when there is a communications issue with the JACK
server. Simply closing the connection is enough to completely clean up
and as such we do not need to remove the ports first. As JACK uses a
socket based protocol that relies on the `select` call, if there is a
communication breakdown with the server the client library waits
forever for a response to the unregister request.

Signed-off-by: Geoffrey McRae <geoff@hostfission.com>
Message-id: 20200613040518.38172-5-geoff@hostfission.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/jackaudio.c