diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2025-07-03 21:20:46 +0200 |
|---|---|---|
| committer | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-07-07 18:09:34 +0200 |
| commit | 4a30e2acd9bb6d871d547f929cefce1d47c08931 (patch) | |
| tree | 5b43474bea5f97a3852461c57521dd18a489b3f9 /src/managers/eventLoop/EventLoopManager.cpp | |
| parent | ceec1943ffad717ff99cd72c60922738e318a445 (diff) | |
eventloop: RAII the even source on readable fd
RAII remove the event source and honor rule by 5
Diffstat (limited to 'src/managers/eventLoop/EventLoopManager.cpp')
| -rw-r--r-- | src/managers/eventLoop/EventLoopManager.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/managers/eventLoop/EventLoopManager.cpp b/src/managers/eventLoop/EventLoopManager.cpp index 6233a2d0..5b2e09d1 100644 --- a/src/managers/eventLoop/EventLoopManager.cpp +++ b/src/managers/eventLoop/EventLoopManager.cpp @@ -77,11 +77,6 @@ void CEventLoopManager::onFdReadable(SReadableWaiter* waiter) { UP<SReadableWaiter> taken = std::move(*it); m_readableWaiters.erase(it); - if (taken->source) { - wl_event_source_remove(taken->source); - taken->source = nullptr; - } - if (taken->fn) taken->fn(); } |
