From 190e5109cf1de0d1a54def528176c5f40e2e46bb Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 16 Feb 2013 09:35:54 +1100 Subject: [PATCH] Silence EOF error on login - see #127 --- proxy/src/main/java/net/md_5/bungee/InitialHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxy/src/main/java/net/md_5/bungee/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/InitialHandler.java index d74c2362..06f10af6 100644 --- a/proxy/src/main/java/net/md_5/bungee/InitialHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/InitialHandler.java @@ -1,6 +1,7 @@ package net.md_5.bungee; import com.google.common.base.Preconditions; +import java.io.EOFException; import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; @@ -175,6 +176,8 @@ public class InitialHandler extends PacketHandler implements Runnable, PendingCo } catch ( KickException ex ) { disconnect( "[Proxy - Kicked] " + ex.getMessage() ); + } catch ( EOFException ex ) + { } catch ( Exception ex ) { disconnect( "[Proxy Error] " + Util.exception( ex ) );