mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-05 07:45:09 +08:00
Ensured that multiple requests from the same camera are no longer possible
CL-541
This commit is contained in:
parent
37461a7934
commit
95b1e8f68c
@ -45,6 +45,8 @@ class NetworkCamera(QObject):
|
|||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def start(self):
|
def start(self):
|
||||||
|
# Ensure that previous requests (if any) are stopped.
|
||||||
|
self.stop()
|
||||||
if self._target is None:
|
if self._target is None:
|
||||||
Logger.log("w", "Unable to start camera stream without target!")
|
Logger.log("w", "Unable to start camera stream without target!")
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user