Skip to content

Commit cb320d1

Browse files
committed
fix usage of wrong session id in afterConnectionClosed
1 parent 5927789 commit cb320d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LavalinkServer/src/main/java/lavalink/server/io/SocketServer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class SocketServer(
147147
}
148148

149149
override fun afterConnectionClosed(session: WebSocketSession, status: CloseStatus) {
150-
val context = contextMap.remove(session.id) ?: return
150+
val context = contextMap.remove(session.attributes["sessionId"]) ?: return
151151
if (context.resumeKey != null) {
152152
resumableSessions.remove(context.resumeKey!!)?.let { removed ->
153153
log.warn(

0 commit comments

Comments
 (0)