This commit is contained in:
Anuken
2019-08-24 10:45:25 -04:00
parent 7b27903de2
commit 444825a5c1

View File

@@ -46,14 +46,19 @@ public class MClient implements ClientProvider, ApplicationListener{
public void update(){ public void update(){
if(socket == null) return; if(socket == null) return;
socket.update((sock, object) -> { try{
try{ socket.update((sock, object) -> {
Net.handleClientReceived(object); try{
}catch(Exception e){ Net.handleClientReceived(object);
Net.showError(e); }catch(Exception e){
netClient.disconnectQuietly(); Net.showError(e);
} netClient.disconnectQuietly();
}); }
});
}catch(Exception e){
Net.showError(e);
netClient.disconnectQuietly();
}
} }
@Override @Override