diff options
Diffstat (limited to 'helix-dap/src/client.rs')
-rw-r--r-- | helix-dap/src/client.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs index f648b248..7ce7833d 100644 --- a/helix-dap/src/client.rs +++ b/helix-dap/src/client.rs @@ -295,7 +295,8 @@ impl Client { match msg { Payload::Event(ev) => { let name = ev.event.clone(); - let tx = awaited_events.lock().await.remove(&name); + let hashmap = awaited_events.lock().await; + let tx = hashmap.get(&name); match tx { Some(tx) => match tx.send(ev).await { |