Skip to content

Commit 19842c4

Browse files
committed
hotfix : close sse emitter on matching success
1 parent aec2dc0 commit 19842c4

File tree

1 file changed

+1
-0
lines changed
  • matching-service/matching-application/app-api/src/main/kotlin/com/grepp/quizy/matching/api/sse

1 file changed

+1
-0
lines changed

matching-service/matching-application/app-api/src/main/kotlin/com/grepp/quizy/matching/api/sse/SseSender.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class SseSender(
2626
.name("MATCHING")
2727
.data(objectMapper.writeValueAsString(MatchingSucceed(event.gameRoomId)))
2828
)
29+
emitter.complete()
2930
} catch (e: IOException) {
3031
closeEmitter(event.userId)
3132
emitter.completeWithError(e)

0 commit comments

Comments
 (0)