mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Abort attempts to connect if an error is thrown when connecting to the serial port
This fixes an issue where thread.join() would be called from the current thread which fails.
This commit is contained in:
parent
8a63b8d110
commit
d28f84d732
1 changed files with 4 additions and 0 deletions
|
@ -173,6 +173,10 @@ class PrinterConnection(SignalEmitter):
|
|||
Logger.log("i", "Could not establish connection on %s: %s. Device is not arduino based." %(self._serial_port,str(e)))
|
||||
except Exception as e:
|
||||
Logger.log("i", "Could not establish connection on %s, unknown reasons. Device is not arduino based." % self._serial_port)
|
||||
|
||||
if not self._serial or not programmer.serial:
|
||||
self._is_connecting = False
|
||||
return
|
||||
|
||||
# If the programmer connected, we know its an atmega based version. Not all that usefull, but it does give some debugging information.
|
||||
for baud_rate in self._getBaudrateList(): # Cycle all baud rates (auto detect)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue