Receiving objects from server on separate thread

This commit is contained in:
2019-12-30 18:18:03 +02:00
parent 61d3d44ee5
commit e66dba8812
4 changed files with 88 additions and 16 deletions

View File

@ -101,6 +101,7 @@ public class Startup {
client.onlineInit(new LoginCredentials(userName, pass.toCharArray()));
} catch (Exception e1) {
logger.warning("Could not connect to server. Trying offline mode...");
e1.printStackTrace();
try {
// Try entering offline mode
localDB.loadUsers();