summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/mic.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/mic.py b/client/mic.py
index 444beea..eff5e72 100644
--- a/client/mic.py
+++ b/client/mic.py
@@ -142,6 +142,9 @@ class Mic:
# no use continuing if no flag raised
if not didDetect:
print "No disturbance detected"
+ stream.stop_stream()
+ stream.close()
+ audio.terminate()
return (None, None)
# cutoff any recording before this disturbance was detected