mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 06:39:09 +08:00
Camera feed is also stopped when NetworkCamera is destroyed
CL-541
This commit is contained in:
parent
95b1e8f68c
commit
23330cd086
@ -87,6 +87,10 @@ class NetworkCamera(QObject):
|
||||
def getImage(self):
|
||||
return self._image
|
||||
|
||||
## Ensure that close gets called when object is destroyed
|
||||
def __del__(self):
|
||||
self.close()
|
||||
|
||||
def _onStreamDownloadProgress(self, bytes_received, bytes_total):
|
||||
# An MJPG stream is (for our purpose) a stream of concatenated JPG images.
|
||||
# JPG images start with the marker 0xFFD8, and end with 0xFFD9
|
||||
|
Loading…
x
Reference in New Issue
Block a user