-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout ? #71
Comments
Repo with my source code : https://gitea.ar2000.me/AR2000/ed_led_sync |
Interesting. This is probably an issue with how the If you have something that works, great! I would probably just put the first operation you do after a break in a try block. Something like this will probably work: def on_modified(self, event):
try:
cli.update()
except OpenRGBDisconnected:
cli.connect()
... That way you'd just reconnect as needed instead of constantly sending data. |
You mentioned that it also happened in the interpreter. Were you using watchdog there as well? |
No I'm not. In the interpret I have nothing else loaded. Only the client. But if I forget ot for a while, when comming back to it it crashes (openrgb crashes too) |
Since it happen also in the interpreter it cannot be that |
When not using actively the open connexion, the next read/write operation (e.g
set_color()
) will failed as disconnected, however regularly callingupdate()
will fix the issue.The Client class may need a kind of keepalive mechanic
The text was updated successfully, but these errors were encountered: