forked from trav/lintunes
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user