1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 23:44:38 +00:00

fix ClientBuilder erroring, maybe

This commit is contained in:
mat 2023-12-04 12:13:26 -06:00
commit cc976c6873

View file

@ -182,6 +182,9 @@ where
address: impl TryInto<ServerAddress>, address: impl TryInto<ServerAddress>,
) -> Result<(), StartError> { ) -> Result<(), StartError> {
self.swarm.accounts = vec![account]; self.swarm.accounts = vec![account];
if self.swarm.states.is_empty() {
self.swarm.states = vec![S::default()];
}
self.swarm.start(address).await self.swarm.start(address).await
} }
} }