diff options
| author | elioat <elioat@tilde.institute> | 2025-11-15 21:47:54 -0500 |
|---|---|---|
| committer | elioat <elioat@tilde.institute> | 2025-11-15 21:47:54 -0500 |
| commit | 1ec6fdbe7fbb3fec37f99b063e779d5f375cd319 (patch) | |
| tree | b56582ab7bfa0a3426bae042137fccf11dcdcf31 /lua/keyboard.playdate.lua | |
| parent | 392b8ecc1130b8af76aa09769c02920f50b4944f (diff) | |
| download | tour-1ec6fdbe7fbb3fec37f99b063e779d5f375cd319.tar.gz | |
Fix: Properly broadcast leave messages and add delay for graceful shutdown
Two fixes:
1. Add 500ms delay after sending ClientLeave so the message can propagate
2. Display UserLeaveMessage to local client when peer leaves (false case)
Now when a user types /quit or /leave:
- ClientLeave message is sent to registry
- Registry broadcasts UserLeaveMessage to all peers
- All connected peers see the leave notification
- Process exits cleanly after giving messages time to propagate
Diffstat (limited to 'lua/keyboard.playdate.lua')
0 files changed, 0 insertions, 0 deletions