Skip to content

Commit

Permalink
fix return type for app delegate exit
Browse files Browse the repository at this point in the history
  • Loading branch information
ranman committed Jun 24, 2014
1 parent 8b209de commit abafb8f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions selfspy/sniff_cocoa.py
Expand Up @@ -64,9 +64,11 @@ def applicationDidFinishLaunching_(self, notification):

def applicationWillResignActive(self, notification):
self.applicationWillTerminate_(notification)
return True

def applicationShouldTerminate_(self, notification):
self.applicationWillTerminate_(notification)
return True

def applicationWillTerminate_(self, notification):
# need to release the lock here as when the
Expand All @@ -75,8 +77,8 @@ def applicationWillTerminate_(self, notification):
# pyobc bridge.
if cfg.LOCK.is_locked():
cfg.LOCK.release()
print("Exiting ...")
return True
print("Exiting")
return None

return AppDelegate

Expand Down

0 comments on commit abafb8f

Please sign in to comment.