mirror of
https://github.com/helix-editor/helix.git
synced 2024-10-05 23:37:34 +03:00
client: handle events multiple times
This commit is contained in:
parent
d6de5408b7
commit
c72475bc30
@ -295,7 +295,8 @@ async fn recv(
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user