From 444825a5c12f2df07f6b8a5b2f1e14048d8e5f34 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 24 Aug 2019 10:45:25 -0400 Subject: [PATCH] Bugfix --- net/src/io/anuke/mindustry/net/MClient.java | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/net/src/io/anuke/mindustry/net/MClient.java b/net/src/io/anuke/mindustry/net/MClient.java index 8ae8536bbb..af6ca3389c 100644 --- a/net/src/io/anuke/mindustry/net/MClient.java +++ b/net/src/io/anuke/mindustry/net/MClient.java @@ -46,14 +46,19 @@ public class MClient implements ClientProvider, ApplicationListener{ public void update(){ if(socket == null) return; - socket.update((sock, object) -> { - try{ - Net.handleClientReceived(object); - }catch(Exception e){ - Net.showError(e); - netClient.disconnectQuietly(); - } - }); + try{ + socket.update((sock, object) -> { + try{ + Net.handleClientReceived(object); + }catch(Exception e){ + Net.showError(e); + netClient.disconnectQuietly(); + } + }); + }catch(Exception e){ + Net.showError(e); + netClient.disconnectQuietly(); + } } @Override