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