Skip to content

Commit

Permalink
Race fix (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
jquagga authored Nov 12, 2024
1 parent 55212b7 commit 85de801
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ttt.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ def main():
time.sleep(5)
continue

# We seem to be racing the filesystem when a file is detected. Give it 3
# seconds to settle before we work on a list.
time.sleep(3)

for jsonfile in jsonlist:
# Ok, let's grab the first json and pull it out and then the matching wav file
audiofile = Path(jsonfile).with_suffix(".wav")
Expand Down

0 comments on commit 85de801

Please sign in to comment.