Tracking: Only send requests if online

This commit is contained in:
Gina Häußge committed 2018-07-19 18:17:29 +02:00
1 parent 490ade5e17
commit d64ca79f05
1 file changed
+3
@@ -233,6 +233,9 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
self._executor.submit(self._do_track, event, **kwargs)
def _do_track(self, event, **kwargs):
if not self._connectivity_checker.online:
return
server = self._settings.get([b"server"])
url = server.format(id=self._settings.get([b"unique_id"]), event=event)