diff options
author | Dmitry Sharshakov | 2021-08-14 06:03:08 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-20 04:43:54 +0000 |
commit | c72475bc3084f206c3d0c612dd86afe324c6931e (patch) | |
tree | ec63fb0e7ce08549c6919b46ab3281b6b3a0f9c6 /helix-dap/src | |
parent | d6de5408b71f23032c57fbb7f122d3295605dd33 (diff) |
client: handle events multiple times
Diffstat (limited to 'helix-dap/src')
-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 { |