fix 'local variable referenced before assignment'
This commit is contained in:
parent
de50db59d5
commit
0ee2adfdf2
|
@ -33,6 +33,7 @@ class FFmpeg:
|
||||||
print('Process already exist, exit...')
|
print('Process already exist, exit...')
|
||||||
else:
|
else:
|
||||||
with Popen(process, stdout=PIPE, stderr=STDOUT) as proc:
|
with Popen(process, stdout=PIPE, stderr=STDOUT) as proc:
|
||||||
|
que = None
|
||||||
if watchdog:
|
if watchdog:
|
||||||
que = Queue()
|
que = Queue()
|
||||||
Process(target=cls._watchdog, args=(proc.pid, sec, que,), daemon=True).start()
|
Process(target=cls._watchdog, args=(proc.pid, sec, que,), daemon=True).start()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user