From 41ccf3f9d3998c0fe5662dae04b5355363697689 Mon Sep 17 00:00:00 2001 From: mrapple Date: Tue, 19 Aug 2014 16:36:43 -0500 Subject: [PATCH] Fix LoginEvent firing after PreLoginEvent is cancelled --- .../src/main/java/net/md_5/bungee/connection/InitialHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java index e92543f2..43f00cf5 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java @@ -277,6 +277,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection if ( result.isCancelled() ) { disconnect( result.getCancelReason() ); + return; } if ( ch.isClosed() ) {