1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

fix(inspector): even if already woken, always schedule an interrupt (#16910)

This commit is contained in:
Bert Belder 2022-12-03 01:18:21 +01:00 committed by GitHub
parent e2a0c3f0dc
commit 66dc54a7f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -560,7 +560,8 @@ impl task::ArcWake for InspectorWaker {
// and necessary. If it is, change the poll state to `Woken`.
match w.poll_state {
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"),
};