commit 9aabf8c220e11e98f809590f3be4e398dc4a8247
parent b5142db9b7b589f9cd46226c755697428c95f9dc
Author: rob <rob@tarina.org>
Date: Tue, 20 Dec 2022 01:22:56 +0200
jo
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tarinactrl.py b/tarinactrl.py
@@ -178,7 +178,7 @@ def main(serverstatus):
rectime=time.time()
elif a == mastersound:
sendtocamera(i,port,'STOP')
- if recording ==None:
+ if recording != mastersound:
time.sleep(sleep)
sendtocamera(i,port,'RECSOUND')
else:
@@ -207,12 +207,12 @@ def main(serverstatus):
for c in cameras:
if c not in camerasoff:
if a == camselected:
- sendtocamera(c,port,'STOP')
if a == mastersound:
time.sleep(sleep)
sendtocamera(c,port,'RECSOUND')
else:
sendtocamera(c,port,'PLACEHOLDER')
+ sendtocamera(c,port,'STOP')
elif a == newselected:
if a == mastersound:
sendtocamera(c,port,'STOP')