Skip to content

Commit

Permalink
Reference the correct variable
Browse files Browse the repository at this point in the history
Change `_is_recording` -> `is_recording`.

Since other lines use `is_recording`, when `stop` is called, it cannot `start` again.
  • Loading branch information
ahuang11 authored Jun 30, 2024
1 parent 7a1e4ad commit 85cde56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/marvin/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def stop(self, wait: bool = True):
if wait:
self._thread.join()
logger.info("Recording finished.")
self._is_recording = False
self.is_recording = False


class BackgroundAudioStream:
Expand Down

0 comments on commit 85cde56

Please sign in to comment.