From b6e1eefeb9d968f662a2ca121f3e8e3cf06753b6 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Tue, 20 Jun 2023 02:50:12 +0200 Subject: [PATCH] Fix --- src/bots_manager/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 => (),