mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-09 07:17:26 +00:00
M9: leaving stops sending at its deadline, however much is left
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f49a8df47c
commit
7560e13e6f
@@ -346,6 +346,9 @@ fn leave_paced(writer: &mut WebSocket<Duplex>, paced: &mut Paced<ClientMsg>) {
|
||||
let give_up = Instant::now() + LEAVE_DRAIN;
|
||||
loop {
|
||||
let now = Instant::now();
|
||||
if now >= give_up {
|
||||
return;
|
||||
}
|
||||
if let Some(m) = paced.take_due(now) {
|
||||
if !send(writer, &m) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user