Revert: 세션명 고유화 제거 (dedicated server와 세션명 불일치 문제)
- dedicated server는 원래 슬롯명으로 Fusion 세션을 시작하므로 클라이언트도 동일한 세션명을 사용해야 함 - SlotSessionName 필드는 유지 (향후 활용 가능) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -106,13 +106,9 @@ func (s *Service) RequestEntry(usernames []string, bossID int) (*BossRoom, error
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 세션명에 타임스탬프를 붙여 매 입장마다 고유하게 만듦
|
|
||||||
// (이전 Fusion 세션이 아직 살아있어도 충돌하지 않음)
|
|
||||||
uniqueSession := fmt.Sprintf("%s_%d", slot.SessionName, time.Now().UnixNano())
|
|
||||||
|
|
||||||
room = &BossRoom{
|
room = &BossRoom{
|
||||||
SessionName: uniqueSession,
|
SessionName: slot.SessionName,
|
||||||
SlotSessionName: slot.SessionName, // 슬롯 리셋용 원래 이름 보존
|
SlotSessionName: slot.SessionName,
|
||||||
BossID: bossID,
|
BossID: bossID,
|
||||||
Status: StatusWaiting,
|
Status: StatusWaiting,
|
||||||
MaxPlayers: len(usernames),
|
MaxPlayers: len(usernames),
|
||||||
|
|||||||
Reference in New Issue
Block a user