Remove pending message instead of flushing it

This commit is contained in:
Bennet Bo Fenner 2025-08-25 12:49:13 +02:00
parent c1d2896501
commit a3a51e535b

View file

@ -1287,7 +1287,7 @@ impl Thread {
started_at: Instant::now(),
duration: delay,
});
this.update(cx, |this, cx| this.flush_pending_message(cx))?;
this.update(cx, |this, _cx| this.pending_message.take())?;
cx.background_executor().timer(delay).await;
continue 'retry;