Better error handling on Steam

This commit is contained in:
Anuken
2020-09-22 13:12:21 -04:00
parent 5895e2f23c
commit 3a466475fd
4 changed files with 23 additions and 18 deletions

View File

@@ -79,10 +79,14 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
Log.err(e);
}
}else if(currentServer != null && fromID == currentServer.getAccountID()){
net.handleClientReceived(output);
try{
net.handleClientReceived(output);
}catch(Throwable t){
net.handleException(t);
}
}
}catch(SteamException e){
e.printStackTrace();
Log.err(e);
}
}
}