aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/chat
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-02-23 17:10:47 +0000
committermat <git@matdoes.dev>2025-02-23 17:10:47 +0000
commit2be4f0f2b66eb7181badec0134c3c3565e3cbd7f (patch)
tree1365332b5ba2ef7e4a6b0e2b187ea1889b2572a3 /azalea-client/src/plugins/chat
parent21acf4c84687eb40cb52746bdf40c2bbe9ab325a (diff)
downloadazalea-drasl-2be4f0f2b66eb7181badec0134c3c3565e3cbd7f.tar.xz
make run_schedule a bounded channel
Diffstat (limited to 'azalea-client/src/plugins/chat')
-rw-r--r--azalea-client/src/plugins/chat/mod.rs6
1 files changed, 3 insertions, 3 deletions
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(());
}
}