Skip to content

Commit 3aef18f

Browse files
committed
♻️ 리뷰 반영 s 삭제
1 parent e25f2f2 commit 3aef18f

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

backend/src/main/java/io/f1/backend/domain/game/app/RoomService.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ public class RoomService {
7272

7373
private static final int CONTINUE_DELAY = 3;
7474

75-
private static final String PENDING_SESSION_ID = "PENDING_SESSION_ID";
76-
7775
public RoomCreateResponse saveRoom(RoomCreateRequest request) {
7876

7977
QuizMinData quizMinData = quizService.getQuizMinData();
@@ -375,6 +373,6 @@ private void changeHost(Room room, String hostSessionId) {
375373
private void removePlayer(Room room, String sessionId, Player removePlayer) {
376374
room.removeUserId(removePlayer.getId());
377375
room.removeSessionId(sessionId);
378-
room.removeValidatedUserIds(removePlayer.getId());
376+
room.removeValidatedUserId(removePlayer.getId());
379377
}
380378
}

backend/src/main/java/io/f1/backend/domain/game/model/Room.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void removeSessionId(String sessionId) {
9595
this.playerSessionMap.remove(sessionId);
9696
}
9797

98-
public void removeValidatedUserIds(Long userId) {
98+
public void removeValidatedUserId(Long userId) {
9999
validatedUserIds.remove(userId);
100100
}
101101

@@ -111,7 +111,7 @@ public Question getCurrentQuestion() {
111111
return questions.get(currentRound - 1);
112112
}
113113

114-
public Boolean isPlaying() {
114+
public boolean isPlaying() {
115115
return state == RoomState.PLAYING;
116116
}
117117

backend/src/main/java/io/f1/backend/domain/game/websocket/service/SessionService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public void handleUserDisconnect(String sessionId, UserPrincipal principal) {
6363
/* 재연결 실패 */
6464
if (sessionId.equals(userIdSession.get(userId))) {
6565
roomService.exitIfNotPlaying(roomId, sessionId, principal);
66+
//메세지 응답 추가
6667
}
6768
removeSession(sessionId, userId);
6869
},

0 commit comments

Comments
 (0)