From d3ed6b25ef25bb9045b5f646ea89deb5de30f5ef Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Mon, 21 Aug 2017 10:06:55 +0200 Subject: For .stopped property, check for .closed first --- sounddevice.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3