Edit syncTimeout property, made Config a singleton
This commit is contained in:
@ -25,6 +25,7 @@ import javax.swing.border.EmptyBorder;
|
||||
|
||||
import envoy.client.Chat;
|
||||
import envoy.client.Client;
|
||||
import envoy.client.Config;
|
||||
import envoy.client.LocalDB;
|
||||
import envoy.schema.Message;
|
||||
import envoy.schema.Sync;
|
||||
@ -235,7 +236,7 @@ public class ChatWindow extends JFrame {
|
||||
contentPane.revalidate();
|
||||
|
||||
loadUsersAndChats();
|
||||
startSyncThread(5000);
|
||||
startSyncThread(Config.getInstance().getSyncTimeout());
|
||||
|
||||
contentPane.revalidate();
|
||||
}
|
||||
@ -260,7 +261,7 @@ public class ChatWindow extends JFrame {
|
||||
}
|
||||
|
||||
/**
|
||||
* For detailed information see Javadoc of corresponding methods.
|
||||
* Updates the data model and the ui every x seconds.
|
||||
*
|
||||
* @param timeout the amount of time that passes between two requests sent to
|
||||
* the server
|
||||
|
Reference in New Issue
Block a user