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:
Ghostkeeper 2017-10-02 16:11:59 +02:00
parent a9c732e624
commit b7090feadb
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -331,6 +331,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
if self._camera_timer.isActive():
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:
try: