diff options
author | Joakim Plate <elupus@xbmc.org> | 2012-01-08 14:34:48 +0100 |
---|---|---|
committer | elupus <elupus@xbmc.org> | 2012-01-08 21:36:35 +0100 |
commit | 179414b33e81f4156c37c009081232a3040be5c5 (patch) | |
tree | 5c8670b96021652f11416195c776b7814b15b089 /tools/EventClients | |
parent | d4516c54d6f6dfcc8c984c90c1f5cd142d1d1925 (diff) |
changed: allow sixwatch to recover after suspend or some exception
Diffstat (limited to 'tools/EventClients')
-rwxr-xr-x | tools/EventClients/Clients/PS3 Sixaxis Controller/ps3d.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/EventClients/Clients/PS3 Sixaxis Controller/ps3d.py b/tools/EventClients/Clients/PS3 Sixaxis Controller/ps3d.py index cc6450327e..de6c8081f2 100755 --- a/tools/EventClients/Clients/PS3 Sixaxis Controller/ps3d.py +++ b/tools/EventClients/Clients/PS3 Sixaxis Controller/ps3d.py @@ -253,11 +253,11 @@ class SixWatch(threading.Thread): self.daemon = True self.start() def run(self): + while True: try: sixwatch.main(self.mac) except Exception, e: - print "Exception caught in sixwatch, aborting: " + str(e) - pass + print "Exception caught in sixwatch, restarting: " + str(e) class ZeroconfThread ( threading.Thread ): """ |