mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
fix(inspector): even if already woken, always schedule an interrupt (#16910)
This commit is contained in:
parent
e2a0c3f0dc
commit
66dc54a7f5
1 changed files with 2 additions and 1 deletions
|
@ -560,7 +560,8 @@ impl task::ArcWake for InspectorWaker {
|
||||||
// and necessary. If it is, change the poll state to `Woken`.
|
// and necessary. If it is, change the poll state to `Woken`.
|
||||||
match w.poll_state {
|
match w.poll_state {
|
||||||
PollState::Idle | PollState::Polling => w.poll_state = PollState::Woken,
|
PollState::Idle | PollState::Polling => w.poll_state = PollState::Woken,
|
||||||
PollState::Woken | PollState::Dropped => return, // Nothing to do.
|
PollState::Woken => {} // Even if already woken, schedule an interrupt.
|
||||||
|
PollState::Dropped => return, // Don't do anything.
|
||||||
PollState::SyncPolling => panic!("wake() called while sync polling"),
|
PollState::SyncPolling => panic!("wake() called while sync polling"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue