mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:39:01 +08:00
Don't stop camera if it wasn't running
Otherwise you get a segfault in the .abort() function down below. Contributes to issue CURA-4376.
This commit is contained in:
parent
a9c732e624
commit
b7090feadb
@ -331,6 +331,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
|
|
||||||
if self._camera_timer.isActive():
|
if self._camera_timer.isActive():
|
||||||
self._camera_timer.stop()
|
self._camera_timer.stop()
|
||||||
|
else: #Camera wasn't even running. Don't try to stop it or you'll get a segfault.
|
||||||
|
return
|
||||||
|
|
||||||
if self._image_reply:
|
if self._image_reply:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user