diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/ops.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/ops.rs b/cli/ops.rs index 06c4eae99..410f15a4c 100644 --- a/cli/ops.rs +++ b/cli/ops.rs @@ -1053,10 +1053,12 @@ fn op_close( } fn op_kill( - _state: &ThreadSafeState, + state: &ThreadSafeState, base: &msg::Base<'_>, data: Option<PinnedBuf>, ) -> CliOpResult { + state.check_run()?; + assert!(data.is_none()); let inner = base.inner_as_kill().unwrap(); let pid = inner.pid(); |