summaryrefslogtreecommitdiff
path: root/core/inspector.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/inspector.rs')
-rw-r--r--core/inspector.rs3
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"),
};