diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2017-08-21 10:06:55 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2017-08-21 10:06:55 +0200 |
| commit | d3ed6b25ef25bb9045b5f646ea89deb5de30f5ef (patch) | |
| tree | ac49773a35b1024b7fed873ffb277ff1ed0ad2ea | |
| parent | 9af4e43a387e312e1c79e35eacb65b138b816c83 (diff) | |
For .stopped property, check for .closed first
| -rw-r--r-- | sounddevice.py | 2 |
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 |
