diff --git a/src/btop.cpp b/src/btop.cpp index ac9267ebc..d9f24967f 100644 --- a/src/btop.cpp +++ b/src/btop.cpp @@ -311,11 +311,10 @@ void term_resize(bool force) { //* Exit handler; stops threads, restores terminal and saves config changes void clean_quit(int sig) { - bool expected = false; - if (!Global::quitting.compare_exchange_strong(expected, true)) - { - return; - } + bool expected = false; + if (!Global::quitting.compare_exchange_strong(expected, true)) { + return; + } Runner::stop(); if (Global::_runner_started) { #if defined __APPLE__ || defined __OpenBSD__ || defined __NetBSD__