fix: use the new event system on the demo (#10)

* compilable demo

* correctly close room_task

* wip

* fix demo
This commit is contained in:
Théo Monnom
2023-01-02 00:40:56 +01:00
committed by GitHub
parent 36aa00343b
commit 0fecba1655
6 changed files with 85 additions and 50 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ impl SessionInner {
error!("failed to handle participant event for {:?}: {:?}", participant.sid(), err);
}
},
_ => panic!("engine_events has been closed unexpectedly")
_ => panic!("participant_events has been closed unexpectedly")
};
},
_ = &mut close_rx => {
+1 -1
View File
@@ -34,6 +34,6 @@ where
pub fn dispatch(&mut self, msg: &T) {
self.senders
.retain(|sender| sender.send(msg.clone()).is_err());
.retain(|sender| sender.send(msg.clone()).is_ok());
}
}