mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-03 12:03:57 -06:00
Prevent crash when switching away from monitor tab
CL-541
This commit is contained in:
parent
73bae37544
commit
4ba551a3af
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,6 @@ class NetworkCamera(QObject):
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self._manager = None
|
|
||||||
|
|
||||||
self._stream_buffer = b""
|
self._stream_buffer = b""
|
||||||
self._stream_buffer_start_index = -1
|
self._stream_buffer_start_index = -1
|
||||||
|
@ -80,6 +79,8 @@ class NetworkCamera(QObject):
|
||||||
self._image_reply = None
|
self._image_reply = None
|
||||||
self._image_request = None
|
self._image_request = None
|
||||||
|
|
||||||
|
self._manager = None
|
||||||
|
|
||||||
self._started = False
|
self._started = False
|
||||||
|
|
||||||
def getImage(self):
|
def getImage(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue