Ensured that multiple requests from the same camera are no longer possible

CL-541
This commit is contained in:
Jaime van Kessel 2017-12-20 15:38:47 +01:00
parent 37461a7934
commit 95b1e8f68c

View File

@ -45,6 +45,8 @@ class NetworkCamera(QObject):
@pyqtSlot()
def start(self):
# Ensure that previous requests (if any) are stopped.
self.stop()
if self._target is None:
Logger.log("w", "Unable to start camera stream without target!")
return