Permalink
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...
1 parent 3f42f37 commit 9b914ee3bb37a2e8c4a3e25b1e779811efa1a1be @dripton committed May 31, 2012
Showing with 4 additions and 7 deletions.
  1. +4 −7 slugathon/util/guiutils.py
View
@@ -1,12 +1,11 @@
-__copyright__ = "Copyright (c) 2003-2012 David Ripton"
+__copyright__ = "Copyright (c) 2003-2011 David Ripton"
__license__ = "GNU GPL v2"
import sys
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):

0 comments on commit 9b914ee

Please sign in to comment.