Skip to content

Commit 5fae9b7

Browse files
committed
Fix hub task
1 parent 234259e commit 5fae9b7

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/tasks/hub_task.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,7 @@ impl Task for HubTask {
6464
if let Ok(info) = info_result {
6565
let online_player = info.players.online;
6666

67-
info!(
68-
"Hub {} has {}/{} players online ({:?})",
69-
instance.get_name(),
70-
online_player,
71-
info.players.max,
72-
instance.get_state()
73-
);
74-
75-
if instance.get_state() == EpsilonState::Running && online_player < n {
67+
if instance.get_state() == EpsilonState::Running && online_player <= n {
7668
n = online_player;
7769
hub_option = Some(instance);
7870
}

0 commit comments

Comments
 (0)