diff --git a/src/bots_manager/mod.rs b/src/bots_manager/mod.rs index 9003890..7fda588 100644 --- a/src/bots_manager/mod.rs +++ b/src/bots_manager/mod.rs @@ -170,7 +170,10 @@ impl BotsManager { self.bot_port_map.entry(bot_data.id) { e.insert(self.next_port); - self.next_port += 1; + + if !is_first_start { + self.next_port += 1; + } match self.start_bot(bot_data, is_first_start).await { BotStartResult::Success => (),