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
View File
@@ -33,6 +33,7 @@ def _no_dj_sound(monkeypatch):
from lintunes.dj import output
monkeypatch.setattr(output.DjOutput, "start", lambda self: None)
monkeypatch.setattr(output.DjOutput, "stop", lambda self: None)
monkeypatch.setattr(output.DjOutput, "shutdown", lambda self: None)
@pytest.fixture(autouse=True)