Cura/plugins/USBPrinting
Ghostkeeper 1946615fff
Fix asynchronous bug if job gets cancelled
If the print job happens to get cancelled right after checking if the index is correct, but before actually reading the line, it would get an IndexError when trying to read the line since cancelling the job clears the _gcode list.
This prevents that asynchronous issue by using the internal check in the list access to check that, and just uses an exception to check whether it's reached the end.

Fixes Sentry issue CURA-QC.
2020-05-11 17:36:24 +02:00
..
avr_isp Revert "CS-171 Add R2 support" 2019-09-06 14:00:04 +00:00
__init__.py Fix code style and unused imports 2018-10-03 23:07:37 +02:00
AutoDetectBaudJob.py Merge pull request #4825 from Frischid/patch-2 2019-02-01 11:31:02 +01:00
AvrFirmwareUpdater.py Revert "CS-171 Add R2 support" 2019-09-06 14:00:04 +00:00
MonitorItem.qml Make monitor item background themable 2018-12-18 13:08:18 +01:00
plugin.json Update missed sdk versions from 7.1 to 7.2.0 for Cura 4.6 2020-04-21 11:46:12 +02:00
USBPrinterOutputDevice.py Fix asynchronous bug if job gets cancelled 2020-05-11 17:36:24 +02:00
USBPrinterOutputDeviceManager.py Remove a number of unused variables 2020-04-10 13:46:19 +02:00