Skip to content

Commit

Permalink
wake: increase WakeSession timeout
Browse files Browse the repository at this point in the history
With a WakeSession timeout of 200ms, some people frequently experience
double wakes. Testing has shown that 400ms greatly reduces those double
wakes, and does not introduce other issues.

Let's make 400ms the default.
  • Loading branch information
stintel committed Jan 17, 2024
1 parent 8db72a5 commit e9e6c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/internal/wake.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def add_event(self, event):
log.debug(f"WakeSession {self.id} adding event {event}")
self.events.append(event)

async def cleanup(self, timeout=200):
async def cleanup(self, timeout=400):
await asyncio.sleep(timeout / 1000)
max_volume = -1000.0
winner = None
Expand Down

0 comments on commit e9e6c52

Please sign in to comment.