v0.73.1: opening DJ mode no longer crashes after enough openings

Each opening started a new audio thread, and Qt's PipeWire backend leaks
~24 file descriptors per thread that ends. At the desktop's 1024-fd limit
QAudioSink.start() failed ("Too many open files") and segfaulted in
pw_stream_connect. The thread now lives as long as the output: stop()
only silences the pump, shutdown() (window close / aboutToQuit) ends it.
This commit is contained in:
2026-10-20 21:16:26 -07:00
parent a52542750c
commit b76a69f504
7 changed files with 112 additions and 10 deletions
+1 -1
View File
@@ -2940,7 +2940,7 @@ class MainWindow(QMainWindow):
self._cast.shutdown()
self._airplay.shutdown()
if self._dj is not None:
self._dj.stop() # its audio thread must end before Qt does
self._dj.shutdown() # its audio thread must end before Qt does
self.player.shutdown()
self.player.loudness.save()
self._manager.flush()