aboutsummaryrefslogtreecommitdiff
path: root/tools/EventClients
diff options
context:
space:
mode:
authorJoakim Plate <elupus@xbmc.org>2012-01-08 14:34:48 +0100
committerelupus <elupus@xbmc.org>2012-01-08 21:36:35 +0100
commit179414b33e81f4156c37c009081232a3040be5c5 (patch)
tree5c8670b96021652f11416195c776b7814b15b089 /tools/EventClients
parentd4516c54d6f6dfcc8c984c90c1f5cd142d1d1925 (diff)
changed: allow sixwatch to recover after suspend or some exception
Diffstat (limited to 'tools/EventClients')
-rwxr-xr-xtools/EventClients/Clients/PS3 Sixaxis Controller/ps3d.py4
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 ):
"""