From ad488344698cca8ba6ab0938492d8c984af858b6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 2 Dec 2020 20:43:29 +0100 Subject: [PATCH] Revert "event/SocketEvent: add assert()" This reverts commit 7bc1c9925b0ecb8ccb287a7e85354cf074162a4f. It caused a crash with the ALSA plugin family (through MultiSocketMonitor::ReplaceSocketList() and MultiSocketMonitor::AddSocket()). Until we have a proper fix, the assertion patch is reverted. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1020 --- src/event/SocketEvent.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/event/SocketEvent.cxx b/src/event/SocketEvent.cxx index f117a69f1..a4e507043 100644 --- a/src/event/SocketEvent.cxx +++ b/src/event/SocketEvent.cxx @@ -60,8 +60,6 @@ SocketEvent::Abandon() noexcept bool SocketEvent::Schedule(unsigned flags) noexcept { - assert((flags & IMPLICIT_FLAGS) == 0); - if (flags == GetScheduledFlags()) return true;