[gjs/ewlsh/implicit-mainloop] Cleanup.
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gjs/ewlsh/implicit-mainloop] Cleanup.
- Date: Thu,  1 Apr 2021 07:37:04 +0000 (UTC)
commit fad6eea34f3720158a42c0319fb3280a483fae64
Author: Evan Welsh <contact evanwelsh com>
Date:   Thu Apr 1 00:36:57 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]