Skip to content

Commit e716f12

Browse files
committed
Activity monitor: Reset ping count when user spoke again
1 parent 0382be8 commit e716f12

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/simulflow/processors/activity_monitor.clj‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
(if (= :sys-in in)
5656
(cond
5757
(frame/user-speech-start? msg)
58-
[(assoc state ::user-speaking? true) {:timer-process-in [msg]}]
58+
[(assoc state
59+
::user-speaking? true
60+
::ping-count 0) {:timer-process-in [msg]}]
5961

6062
(frame/user-speech-stop? msg)
6163
[(assoc state ::user-speaking? false) {:timer-process-in [msg]}]

0 commit comments

Comments
 (0)