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:
parent
250574bc41
commit
6a95e46a18
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user