Commit db6e8b0d3eb6d10d06dba9333ab2a8c9b6e9d163
Committed by
GitHub
Exists in
master
Merge pull request #373 from okahilak/fix-stop-navigation-when-serial-port-connection-is-none
FIX: StopNavigation function when serial port connection has not been formed
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
invesalius/navigation/navigation.py
... | ... | @@ -324,9 +324,10 @@ class Navigation(): |
324 | 324 | self.coord_queue.clear() |
325 | 325 | self.coord_queue.join() |
326 | 326 | |
327 | - if self.SerialPortEnabled(): | |
327 | + if self.serial_port_connection is not None: | |
328 | 328 | self.serial_port_connection.join() |
329 | 329 | |
330 | + if self.SerialPortEnabled(): | |
330 | 331 | self.serial_port_queue.clear() |
331 | 332 | self.serial_port_queue.join() |
332 | 333 | ... | ... |