mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-08 06:00:25 +00:00
Merge branch 'fix/live-reconnect' into fix/live-offline-merge
This commit is contained in:
@@ -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