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(){
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