websocket increase reconnect time

moonraker takes around 5 seconds to restart on a pi3 so 6 seconds tends to be too close

moonraker takes at least this amount to restart on a pi3
This commit is contained in:
alfrix 2022-12-05 11:38:26 -03:00
parent 250574bc41
commit 6a95e46a18

View File

@ -51,7 +51,7 @@ class KlippyWebsocket(threading.Thread):
# Enable a timeout so that way if moonraker is not running, it will attempt to reconnect
self.connect()
if self.connecting:
GLib.timeout_add_seconds(6, self.reconnect)
GLib.timeout_add_seconds(10, self.reconnect)
def connect(self):
if self.connected: