Skip to content

Commit 6b657b0

Browse files
committed
Fix: Index should be increased (shared) after the connection difficulty is calculated.
1 parent c491ba0 commit 6b657b0

File tree

1 file changed

+2
-0
lines changed
  • src/controller/rooms/experimental

1 file changed

+2
-0
lines changed

src/controller/rooms/experimental/room.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ pub fn start_guest(room: Room, player: Option<String>, capture: AppStateCapture)
287287

288288
*difficulty = easytier::calc_conn_difficulty(local_nat, server_nat);
289289
logging!("RoomExperiment", "Current NAT status: {:?} -> {:?}, difficulty = {:?}", local_nat, server_nat, difficulty);
290+
state.increase_shared();
291+
290292
break 'local_port (local_port, *server_address);
291293
}
292294

0 commit comments

Comments
 (0)