summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sounddevice.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sounddevice.py b/sounddevice.py
index 4152aa8..08ce34c 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -1162,6 +1162,8 @@ class _StreamBase(object):
stopped
"""
+ if self.closed:
+ return False
return _check(_lib.Pa_IsStreamActive(self._ptr)) == 1
@property