From: Florian L. <fle...@us...> - 2005-10-08 23:18:17
|
Update of /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/controller In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16995/src/net/sf/magicmap/client/controller Modified Files: Controller.java ServerPoller.java Log Message: Variables Empfangsinterval für Daten vom Server Index: Controller.java =================================================================== RCS file: /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/controller/Controller.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Controller.java 15 Jul 2005 16:40:04 -0000 1.4 --- Controller.java 8 Oct 2005 23:18:09 -0000 1.5 *************** *** 247,250 **** --- 247,257 ---- } } + + public void restartServerPoller(){ + if (isMapLoaded() && isConnected()){ + poller.stop(); + poller.start(); + } + } public boolean isMapLoaded(){ Index: ServerPoller.java =================================================================== RCS file: /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/controller/ServerPoller.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ServerPoller.java 11 May 2005 10:51:27 -0000 1.3 --- ServerPoller.java 8 Oct 2005 23:18:09 -0000 1.4 *************** *** 37,41 **** public void start(){ ! this.timer.schedule(builderTimerTask(), Settings.POLL_DELAY, Settings.POLL_INTERVAL); } --- 37,41 ---- public void start(){ ! this.timer.schedule(builderTimerTask(), Settings.POLL_DELAY, Settings.getPollIntevall()); } |