From b7090feadbfe42f2517f0cf4b630503b708c36c3 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 2 Oct 2017 16:11:59 +0200 Subject: [PATCH] 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. --- plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py index d489402d8e..592b0e9081 100755 --- a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py +++ b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py @@ -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: