client: handle events multiple times
This commit is contained in:
parent
d6de5408b7
commit
c72475bc30
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue