Not starting the sync thread in offline mode

This commit is contained in:
Kai S. K. Engelbart 2019-12-14 11:02:01 +01:00
parent ea3ad85611
commit 0123935cea
1 changed files with 3 additions and 1 deletions

View File

@ -238,7 +238,9 @@ public class ChatWindow extends JFrame {
contentPane.revalidate();
loadUsersAndChats();
startSyncThread(Config.getInstance().getSyncTimeout());
if(client.isOnline())
startSyncThread(Config.getInstance().getSyncTimeout());
contentPane.revalidate();
}