mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 15:57:52 -06:00
Ensured that multiple requests from the same camera are no longer possible
CL-541
This commit is contained in:
parent
37461a7934
commit
95b1e8f68c
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue