File tree 1 file changed +2
-6
lines changed
backend/src/main/java/site/coduo/websocket/stomp
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,7 @@ public void onSubscription(final SessionSubscribeEvent event) {
30
30
throw new NotFoundAccessCodeInQueryException ("STOMP 헤더에 simpDestination이 존재하지 않습니다." );
31
31
}
32
32
final String key = parsePairRoomKey (destination );
33
- if (timerStompManager .isTimerStatusDestination (destination , key )) {
34
- schedulerService .notifyTimerStatus (key );
35
- }
33
+ schedulerService .notifyTimerStatus (key );
36
34
}
37
35
38
36
@ EventListener
@@ -43,9 +41,7 @@ public void onUnSubscription(final SessionUnsubscribeEvent event) {
43
41
throw new NotFoundAccessCodeInQueryException ("STOMP 헤더에 simpSubscriptionId가 존재하지 않습니다." );
44
42
}
45
43
final String key = parsePairRoomKey (destination );
46
- if (timerStompManager .isTimerStatusDestination (destination , key )) {
47
- schedulerService .syncTimerWithDatabase (key );
48
- }
44
+ schedulerService .syncTimerWithDatabase (key );
49
45
}
50
46
51
47
private String parsePairRoomKey (final String destination ) {
You can’t perform that action at this time.
0 commit comments