[gjs/ewlsh/implicit-mainloop] Cleanup.




commit e2af3aede5078a036f39388a623ceea7a48f7043
Author: Evan Welsh <contact evanwelsh com>
Date:   Thu Apr 1 00:38:08 2021 -0700

    Cleanup.

 gjs/mainloop.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gjs/mainloop.cpp b/gjs/mainloop.cpp
index 55cd22f2..33482137 100644
--- a/gjs/mainloop.cpp
+++ b/gjs/mainloop.cpp
@@ -33,14 +33,12 @@ void gjs_spin_event_loop(JSContext* cx) {
         // Check if System.exit() has been called.
         if (priv->should_exit(nullptr))
             break;
-
     } while (
         // If there are pending sources
         has_pending &&
         // and the job queue is not empty
         !priv->empty() &&
         // and System.exit() has not been called
-        !priv->should_exit(nullptr)
         // continue spinning the event loop.
-    );
+        !priv->should_exit(nullptr));
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]