From b38bfeeefe0f4f82a54d2d258ccd3e09edb1e0ab Mon Sep 17 00:00:00 2001 From: Azsde Date: Thu, 1 Jun 2023 16:43:54 +0200 Subject: [PATCH] [BUGIFX 176] Fix dbus connection leak --- omxplayer/player.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/omxplayer/player.py b/omxplayer/player.py index 4819ff6..d90e0ae 100644 --- a/omxplayer/player.py +++ b/omxplayer/player.py @@ -863,6 +863,10 @@ def quit(self): """ Quit the player, blocking until the process has died """ + # Close dbus socket to avoid leaking unix socket. + if self._connection._bus is not None: + self._connection._bus.close() + logger.debug('BusConnection closed') if self._process is None: logger.debug('Quit was called after self._process had already been released') return