diff options
| author | mat <git@matdoes.dev> | 2025-03-25 04:06:47 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-03-25 04:06:47 +0000 |
| commit | 656162d2186444f70512af7012f87bfbf9da916a (patch) | |
| tree | ba8e3f52e0f681a4cd2c46525c207f977a861251 /azalea | |
| parent | 113222a3a25f0952958c0d0d19968090aa1f34d7 (diff) | |
| download | azalea-drasl-656162d2186444f70512af7012f87bfbf9da916a.tar.xz | |
make events channel in Client::start_client optional
Diffstat (limited to 'azalea')
| -rw-r--r-- | azalea/src/swarm/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index 59a83845..2062446a 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -657,13 +657,16 @@ impl Swarm { .custom_resolved_address .unwrap_or_else(|| *self.resolved_address.read()); - let (bot, rx) = Client::start_client(StartClientOpts { + let (tx, rx) = mpsc::unbounded_channel(); + + let bot = Client::start_client(StartClientOpts { ecs_lock: self.ecs_lock.clone(), account, address: &address, resolved_address: &resolved_address, proxy: join_opts.proxy.clone(), run_schedule_sender: self.run_schedule_sender.clone(), + event_sender: Some(tx), }) .await?; // add the state to the client |
