its Working!
This commit is contained in:
parent
cf9c0d0c54
commit
798b06ca91
|
@ -71,9 +71,6 @@ public class Client implements Runnable{
|
||||||
try {
|
try {
|
||||||
handler.HandleData((Data) in.readObject(), this);
|
handler.HandleData((Data) in.readObject(), this);
|
||||||
// System.out.println("Recived data!");
|
// System.out.println("Recived data!");
|
||||||
} catch(NullPointerException|SocketException|EOFException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
disconnect();
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
disconnect();
|
disconnect();
|
||||||
|
|
|
@ -29,7 +29,7 @@ public class JobManager implements Iterator<Job>{
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Thread getnewThread() {
|
private Thread getnewThread() {
|
||||||
return new Thread(new Runnable() {
|
return new Thread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
@ -155,9 +155,7 @@ public class JobManager implements Iterator<Job>{
|
||||||
|
|
||||||
public int jobs_compiledtarget() {
|
public int jobs_compiledtarget() {
|
||||||
int w = 7 * Server.getServer().getConnectionCount();
|
int w = 7 * Server.getServer().getConnectionCount();
|
||||||
if(w < 10)
|
return (w < 10) ? 10 : w;
|
||||||
w = 10;
|
|
||||||
return w;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startCompile() {
|
private void startCompile() {
|
||||||
|
|
|
@ -36,7 +36,9 @@ public class Worker implements PacketHandler, Runnable{
|
||||||
while(!client.hasConnection()) {//waiting for connection
|
while(!client.hasConnection()) {//waiting for connection
|
||||||
Thread.sleep(500);
|
Thread.sleep(500);
|
||||||
}
|
}
|
||||||
} catch(Exception e) {}
|
} catch(Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
while (run) {
|
while (run) {
|
||||||
if(jobs.size()>0) {
|
if(jobs.size()>0) {
|
||||||
Result r = justrun(jobs.get(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