Improve reconnection of controller.
This commit is contained in:
parent
c0cc6ff418
commit
49f9e9d05a
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,8 @@ class MattchBox(Controller):
|
|||
elif line in [2, 4, 6]:
|
||||
self.sendToPlayer(int(line / 2) - 1, "STOP")
|
||||
except Exception:
|
||||
continue
|
||||
time.sleep(5)
|
||||
self.connect(self.port)
|
||||
finally:
|
||||
time.sleep(0.01)
|
||||
|
||||
|
|
Loading…
Reference in a new issue