From 3558317dc9c090a3c779bd7ec0a10dffc4a79814 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 23 Jul 2024 13:05:51 +0200 Subject: [PATCH] event/MultiSocketMonitor: remove force-refresh on every iteration libasound guarantees that the file descriptors never change for a "prepared" PCM device, thus we can omit this defensive kludge. --- src/event/MultiSocketMonitor.cxx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/event/MultiSocketMonitor.cxx b/src/event/MultiSocketMonitor.cxx index 9bd23a10c..8f4921b14 100644 --- a/src/event/MultiSocketMonitor.cxx +++ b/src/event/MultiSocketMonitor.cxx @@ -120,10 +120,6 @@ MultiSocketMonitor::OnIdle() noexcept if (ready) { ready = false; DispatchSockets(); - - /* TODO: don't refresh always; require users to call - InvalidateSockets() */ - refresh = true; } if (refresh) {