fix: Wait for capture to be done before processing it

pull/528/head
Raphaël Vinot 2022-09-27 15:44:17 +02:00
parent d80d9c50f9
commit d500872943
1 changed files with 4 additions and 0 deletions

View File

@ -78,6 +78,10 @@ class AsyncCapture(AbstractManager):
entries = self.lacus.get_capture(uuid)
if entries['status'] == CaptureStatusPy.DONE:
break
else:
# No captures are ready
uuid = None
if uuid is None:
self.unset_running()
return