From 31416ffae6fbfc36d8e67a0a5f745f4282531b48 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 16 May 2019 12:19:47 +0200 Subject: [PATCH] fix: bar removed --- src/modules/network.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/network.cpp b/src/modules/network.cpp index 8a6c6a94..2fe21fc8 100644 --- a/src/modules/network.cpp +++ b/src/modules/network.cpp @@ -120,6 +120,9 @@ void waybar::modules::Network::worker() { for (auto i = 0; i < ec; i++) { if (events[i].data.fd == nl_socket_get_fd(ev_sock_)) { nl_recvmsgs_default(ev_sock_); + } else { + thread_.stop(); + break; } } }