summaryrefslogtreecommitdiff
path: root/cli/ops
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops')
-rw-r--r--cli/ops/worker_host.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/cli/ops/worker_host.rs b/cli/ops/worker_host.rs
index 20ffb8eb7..58457c2e7 100644
--- a/cli/ops/worker_host.rs
+++ b/cli/ops/worker_host.rs
@@ -202,7 +202,6 @@ fn op_host_poll_worker(
) -> Result<JsonOp, ErrBox> {
let args: WorkerArgs = serde_json::from_value(args)?;
let id = args.id as u32;
- let state_ = state.clone();
let future = WorkerPollFuture {
state: state.clone(),
@@ -211,13 +210,6 @@ fn op_host_poll_worker(
let op = async move {
let result = future.await;
-
- if result.is_err() {
- let mut workers_table = state_.workers.lock().unwrap();
- let worker = workers_table.get_mut(&id).unwrap();
- worker.clear_exception();
- }
-
Ok(serialize_worker_result(result))
};
Ok(JsonOp::Async(op.boxed()))