client: handle events multiple times

This commit is contained in:
Dmitry Sharshakov 2021-08-14 09:03:08 +03:00 committed by Blaž Hrastnik
parent d6de5408b7
commit c72475bc30

View File

@ -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 {