fixed issue with channel blocking

This commit is contained in:
michael-bailey 2021-03-18 23:37:48 +00:00
parent 53ff1858f6
commit 8f3d1549ca
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ impl ICooperative for Server{
fn tick(&self) {
// handle new messages loop
for message in self.receiver.iter() {
for message in self.receiver.try_iter() {
match message {
ServerMessages::ClientConnected(client) => {
self.client_manager.add_client(client);