diff options
author | Bert Belder <bertbelder@gmail.com> | 2022-12-03 01:18:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 01:18:21 +0100 |
commit | 66dc54a7f51058ae4558a51df8c5ef04096b2e5d (patch) | |
tree | 92acc6128116a645eea34c5bf0a17cc63e9d35dc /core/inspector.rs | |
parent | e2a0c3f0dcadd06b2afa5c7128b7e7ec18818557 (diff) |
fix(inspector): even if already woken, always schedule an interrupt (#16910)
Diffstat (limited to 'core/inspector.rs')
-rw-r--r-- | core/inspector.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/inspector.rs b/core/inspector.rs index 7450e46b8..30129f94b 100644 --- a/core/inspector.rs +++ b/core/inspector.rs @@ -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"), }; |