From 98606beaad0a8322e9efbbbb01176c629eef38ec Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 20 Feb 2024 03:01:58 +0000 Subject: [PATCH] core: fixup number of pollfds in poll thread --- src/core/hyprlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index 52ecfeb..6c6ebed 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -134,7 +134,7 @@ void CHyprlock::run() { exit(1); } - for (size_t i = 0; i < 3; ++i) { + for (size_t i = 0; i < 1; ++i) { if (pollfds[i].revents & POLLHUP) { Debug::log(CRIT, "[core] Disconnected from pollfd id {}", i); m_bTerminate = true;