Commits

Travis Shirk  committed 5e0a9b7

Restore the calling of sys.exit if `quit` is called before running

  • Participants
  • Parent commits c22b357

Comments (0)

Files changed (1)

File lib/concurrence/core.py

     global _running
     global _exitcode
     _exitcode = exitcode
-    _running = False
+    if not _running:
+        sys._exit(exitcode)
+    else:
+        _running = False
 
 #monkey patch sys exit to call our quit in order
 #to properly finish our dispatch loop