mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 03:07:19 +00:00
Fix game session not being disposed with correctly when an exception occurs in the pipeline.
This commit is contained in:
1 parent
bacb708d26
commit
7e648cb7f4
1 file changed
+1
-1
@@ -49,7 +49,7 @@ public final class ApolloHandler extends ChannelInboundHandlerAdapter {
|
||||
@Override
|
||||
public void channelInactive(ChannelHandlerContext ctx) {
|
||||
Channel channel = ctx.channel();
|
||||
Session session = ctx.attr(NetworkConstants.SESSION_KEY).getAndRemove();
|
||||
Session session = channel.attr(NetworkConstants.SESSION_KEY).getAndRemove();
|
||||
if (session != null) {
|
||||
session.destroy();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user