Skip to content

Commit d3ed6b2

Browse files
committed
For .stopped property, check for .closed first
1 parent 9af4e43 commit d3ed6b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sounddevice.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,8 @@ def stopped(self):
11801180
active
11811181
11821182
"""
1183+
if self.closed:
1184+
return True
11831185
return _check(_lib.Pa_IsStreamStopped(self._ptr)) == 1
11841186

11851187
@property

0 commit comments

Comments
 (0)