Skip to content

Commit 79e608b

Browse files
Fix deadlock in ffdec.available()
Fixes #130 by changing `wait()` to `communicate()` to avoid deadlock See https://docs.python.org/3/library/subprocess.html#subprocess.Popen.wait for context.
1 parent b694c4f commit 79e608b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

audioread/ffdec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def available():
110110
except OSError:
111111
return False
112112
else:
113-
proc.wait()
113+
proc.communicate()
114114
return proc.returncode == 0
115115

116116

0 commit comments

Comments
 (0)