From 428a77bae1527634d370f3022fc5e2eb46f108b0 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 29 Oct 2012 18:36:25 +1100 Subject: [PATCH] Because server admins are bitchy we need to support 1.3 as well --- src/main/java/net/md_5/bungee/BungeeCord.java | 1 + src/main/java/net/md_5/bungee/InitialHandler.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/md_5/bungee/BungeeCord.java b/src/main/java/net/md_5/bungee/BungeeCord.java index 5e4d8251..bf801b48 100644 --- a/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/src/main/java/net/md_5/bungee/BungeeCord.java @@ -200,6 +200,7 @@ public class BungeeCord } $().info("Thank you and goodbye"); + System.exit(0); } /** diff --git a/src/main/java/net/md_5/bungee/InitialHandler.java b/src/main/java/net/md_5/bungee/InitialHandler.java index b4c67776..59772679 100644 --- a/src/main/java/net/md_5/bungee/InitialHandler.java +++ b/src/main/java/net/md_5/bungee/InitialHandler.java @@ -78,11 +78,11 @@ public class InitialHandler implements Runnable break; case 0xFE: socket.setSoTimeout(100); - boolean newPing = true; + boolean newPing = false; try { socket.getInputStream().read(); - newPing = false; + newPing = true; } catch (IOException ex) { }