From 10528b2f550ee406d3ba76a6c7c2efbb651bad35 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 21 Jan 2018 16:24:34 -0500 Subject: [PATCH] Changed stop() to dispose() on crash, fixed web key triggers --- android/AndroidManifest.xml | 4 ++-- .../anuke/mindustry/desktop/DesktopLauncher.java | 3 +-- html/webapp/index.html | 6 ++++-- kryonet/src/io/anuke/kryonet/KryoServer.java | 16 +++++++++++++--- 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 6a140d3103..aa94f2a9c2 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="59" + android:versionName="3.3b10" > diff --git a/desktop/src/io/anuke/mindustry/desktop/DesktopLauncher.java b/desktop/src/io/anuke/mindustry/desktop/DesktopLauncher.java index 75e5b63bcf..54d60c7d58 100644 --- a/desktop/src/io/anuke/mindustry/desktop/DesktopLauncher.java +++ b/desktop/src/io/anuke/mindustry/desktop/DesktopLauncher.java @@ -136,8 +136,7 @@ public class DesktopLauncher { e.printStackTrace(); //attempt to close connections - try{ Net.closeServer(); }catch (Exception p){} - try{ Net.disconnect(); }catch (Exception p){} + try{ Net.dispose(); }catch (Exception p){} //don't create crash logs for me (anuke), as it's expected if(System.getProperty("user.name").equals("anuke")) return; diff --git a/html/webapp/index.html b/html/webapp/index.html index c77b9f93de..9418769dab 100644 --- a/html/webapp/index.html +++ b/html/webapp/index.html @@ -13,6 +13,8 @@