remove call to creating connection in printer_worker thread since it's called on initialization.

This commit is contained in:
jneilliii 2024-10-30 00:28:37 -04:00
parent 28be048300
commit 2537bc8f57
2 changed files with 3 additions and 3 deletions

View File

@ -264,7 +264,7 @@ class BambuVirtualPrinter:
self._settings.get(["device_type"]) == ""
or self._settings.get(["serial"]) == ""
or self._settings.get(["username"]) == ""
or self._settings.get(["access_code"]) == ""
or (self._settings.get(["access_code"]) == "" and self._settings.get_boolean(["local_mqtt"]))
):
msg = "invalid settings to start connection with Bambu Printer"
self._log.debug(msg)
@ -685,7 +685,7 @@ class BambuVirtualPrinter:
self._state_change_queue.join()
def _printer_worker(self):
self._create_client_connection_async()
# self._create_client_connection_async()
self.sendIO("Printer connection complete")
while self._running:
try:

View File

@ -14,7 +14,7 @@ plugin_package = "octoprint_bambu_printer"
plugin_name = "OctoPrint-BambuPrinter"
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "0.1.8rc3"
plugin_version = "0.1.8rc4"
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module