Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "Add a try/except in exit, in case the reactor is stopped twic…

…e quickly."

This reverts commit 42a94c4.

It was keeping the GUI from exiting cleanly.
  • Loading branch information...
commit 9b914ee3bb37a2e8c4a3e25b1e779811efa1a1be 1 parent 3f42f37
@dripton authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 slugathon/util/guiutils.py
View
11 slugathon/util/guiutils.py
@@ -1,4 +1,4 @@
-__copyright__ = "Copyright (c) 2003-2012 David Ripton"
+__copyright__ = "Copyright (c) 2003-2011 David Ripton"
__license__ = "GNU GPL v2"
@@ -6,7 +6,6 @@
import math
from twisted.internet import reactor
-from twisted.internet.error import ReactorNotRunning
def flatten_point_list(points):
@@ -115,11 +114,9 @@ def exit(*unused):
convenient to pass one through a callback.
"""
if reactor.running:
- try:
- reactor.stop()
- except ReactorNotRunning:
- pass
- sys.exit(0)
+ reactor.stop()
+ else:
+ sys.exit(0)
def draw_polygon(ctx, points):
Please sign in to comment.
Something went wrong with that request. Please try again.