Removed Useless Thread

This commit is contained in:
mrbesen 2017-05-20 11:17:30 +02:00
parent 00b494a3d8
commit cf9c0d0c54
1 changed files with 3 additions and 4 deletions

View File

@ -47,11 +47,10 @@ public class Starter {
lasttest = System.currentTimeMillis();
try {
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) {
int minus = (int) ((System.currentTimeMillis()-lasttest)/10000);//für alle 10 sekunden verbinung ein lost count weniger