summaryrefslogtreecommitdiff
path: root/sounddevice.py
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2017-08-21 10:06:55 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2017-08-21 10:06:55 +0200
commitd3ed6b25ef25bb9045b5f646ea89deb5de30f5ef (patch)
treeac49773a35b1024b7fed873ffb277ff1ed0ad2ea /sounddevice.py
parent9af4e43a387e312e1c79e35eacb65b138b816c83 (diff)
For .stopped property, check for .closed first
Diffstat (limited to 'sounddevice.py')
-rw-r--r--sounddevice.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sounddevice.py b/sounddevice.py
index 08ce34c..2a89fc5 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -1180,6 +1180,8 @@ class _StreamBase(object):
active
"""
+ if self.closed:
+ return True
return _check(_lib.Pa_IsStreamStopped(self._ptr)) == 1
@property