From 2be4f0f2b66eb7181badec0134c3c3565e3cbd7f Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 23 Feb 2025 17:10:47 +0000 Subject: make run_schedule a bounded channel --- azalea-client/src/plugins/chat/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-client/src/plugins') diff --git a/azalea-client/src/plugins/chat/mod.rs b/azalea-client/src/plugins/chat/mod.rs index 66c77b56..aa5606eb 100644 --- a/azalea-client/src/plugins/chat/mod.rs +++ b/azalea-client/src/plugins/chat/mod.rs @@ -157,7 +157,7 @@ impl Client { content: message.to_string(), kind: ChatKind::Message, }); - self.run_schedule_sender.send(()).unwrap(); + let _ = self.run_schedule_sender.try_send(()); } /// Send a command packet to the server. The `command` argument should not @@ -171,7 +171,7 @@ impl Client { content: command.to_string(), kind: ChatKind::Command, }); - self.run_schedule_sender.send(()).unwrap(); + let _ = self.run_schedule_sender.try_send(()); } /// Send a message in chat. @@ -188,7 +188,7 @@ impl Client { entity: self.entity, content: content.to_string(), }); - self.run_schedule_sender.send(()).unwrap(); + let _ = self.run_schedule_sender.try_send(()); } } -- cgit v1.2.3