its Working!
This commit is contained in:
parent
cf9c0d0c54
commit
798b06ca91
|
@ -71,9 +71,6 @@ public class Client implements Runnable{
|
|||
try {
|
||||
handler.HandleData((Data) in.readObject(), this);
|
||||
// System.out.println("Recived data!");
|
||||
} catch(NullPointerException|SocketException|EOFException e) {
|
||||
e.printStackTrace();
|
||||
disconnect();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
disconnect();
|
||||
|
|
|
@ -29,7 +29,7 @@ public class JobManager implements Iterator<Job>{
|
|||
update();
|
||||
}
|
||||
|
||||
public Thread getnewThread() {
|
||||
private Thread getnewThread() {
|
||||
return new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -155,9 +155,7 @@ public class JobManager implements Iterator<Job>{
|
|||
|
||||
public int jobs_compiledtarget() {
|
||||
int w = 7 * Server.getServer().getConnectionCount();
|
||||
if(w < 10)
|
||||
w = 10;
|
||||
return w;
|
||||
return (w < 10) ? 10 : w;
|
||||
}
|
||||
|
||||
private void startCompile() {
|
||||
|
|
|
@ -36,7 +36,9 @@ public class Worker implements PacketHandler, Runnable{
|
|||
while(!client.hasConnection()) {//waiting for connection
|
||||
Thread.sleep(500);
|
||||
}
|
||||
} catch(Exception e) {}
|
||||
} catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
while (run) {
|
||||
if(jobs.size()>0) {
|
||||
Result r = justrun(jobs.get(0));
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/BesenBoincServer"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
Loading…
Reference in New Issue