aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/swarm/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs
index 0bb9f7cd..ed70dacd 100644
--- a/azalea/src/swarm/mod.rs
+++ b/azalea/src/swarm/mod.rs
@@ -392,7 +392,7 @@ pub enum SwarmEvent {
///
/// You can implement an auto-reconnect by calling [`Swarm::add`]
/// with the account from this event.
- Disconnect(Account),
+ Disconnect(Box<Account>),
/// At least one bot received a chat message.
Chat(ChatPacket),
}
@@ -520,7 +520,7 @@ impl Swarm {
}
cloned_bots.lock().remove(&bot.entity);
swarm_tx
- .send(SwarmEvent::Disconnect(owned_account))
+ .send(SwarmEvent::Disconnect(Box::new(owned_account)))
.unwrap();
});