Removed Useless Thread
This commit is contained in:
parent
00b494a3d8
commit
cf9c0d0c54
|
@ -47,11 +47,10 @@ public class Starter {
|
||||||
lasttest = System.currentTimeMillis();
|
lasttest = System.currentTimeMillis();
|
||||||
try {
|
try {
|
||||||
Client c = new Client(host, port, new Worker());
|
Client c = new Client(host, port, new Worker());
|
||||||
Thread client = new Thread(c, "Connection");
|
|
||||||
client.start();
|
|
||||||
|
|
||||||
while(client.isAlive())
|
System.out.println("Connection Established.");
|
||||||
;
|
|
||||||
|
c.run();
|
||||||
|
|
||||||
if(lost_counter > 0) {
|
if(lost_counter > 0) {
|
||||||
int minus = (int) ((System.currentTimeMillis()-lasttest)/10000);//für alle 10 sekunden verbinung ein lost count weniger
|
int minus = (int) ((System.currentTimeMillis()-lasttest)/10000);//für alle 10 sekunden verbinung ein lost count weniger
|
||||||
|
|
Loading…
Reference in New Issue