client: handle events multiple times

pull/574/head
Dmitry Sharshakov 3 years ago committed by Blaž Hrastnik
parent d6de5408b7
commit c72475bc30

@ -295,7 +295,8 @@ impl Client {
match msg { match msg {
Payload::Event(ev) => { Payload::Event(ev) => {
let name = ev.event.clone(); 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 { match tx {
Some(tx) => match tx.send(ev).await { Some(tx) => match tx.send(ev).await {

Loading…
Cancel
Save