diff options
Diffstat (limited to 'cli/inspector.rs')
-rw-r--r-- | cli/inspector.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/inspector.rs b/cli/inspector.rs index d0601c522..f68882e48 100644 --- a/cli/inspector.rs +++ b/cli/inspector.rs @@ -452,6 +452,11 @@ impl DenoInspector { &self, mut invoker_cx: Option<&mut Context>, ) -> Result<Poll<()>, BorrowMutError> { + // Short-circuit if there is no server + if self.server.is_none() { + return Ok(Poll::Ready(())); + } + // The futures this function uses do not have re-entrant poll() functions. // However it is can happpen that poll_sessions() gets re-entered, e.g. // when an interrupt request is honored while the inspector future is polled |