From d60cb88a77b3832c6025c6208766510230b045b5 Mon Sep 17 00:00:00 2001
From: user <user@cocal-machine.local>
Date: Tue, 30 Jan 2024 15:57:10 +0100
Subject: [PATCH] fix device unavailable on second run issue

---
 app/cocal_methods.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/cocal_methods.py b/app/cocal_methods.py
index 9e93f05..c070675 100644
--- a/app/cocal_methods.py
+++ b/app/cocal_methods.py
@@ -151,6 +151,7 @@ class CocalMethods:
         # close the streams and files
         for stream in streams:
             stream.stop()
+            stream.close()
 
         for soundfile in soundfiles:
             soundfile.close()
-- 
GitLab