Get things back to mostly stable.
This commit is contained in:
parent
bdffff72bf
commit
1a969fdec4
@ -2184,17 +2184,11 @@ public class delegationServices {
|
||||
|
||||
}
|
||||
public static void userAuthetication() {
|
||||
while (true) {
|
||||
final Runnable runnable = new Runnable() {
|
||||
public void run() {
|
||||
Lrequest = dCollection.find(eq("status", false)).first();
|
||||
if (!(Lrequest == null)) {
|
||||
delegationProcesser();
|
||||
}
|
||||
}
|
||||
};
|
||||
runnable.run();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,7 @@ package com.jamesquinley;
|
||||
import com.jamesquinley.DelegationServices.status;
|
||||
|
||||
/**
|
||||
Hey there! This is the source code for AOTSK-Delegation Server, self explanitory.
|
||||
Hey there! This is the source code for AOTSK-Delegation Server, self explanatory.
|
||||
Also this is multi line so I can justify using this type of comment.
|
||||
*/
|
||||
public class Main
|
||||
@ -13,7 +13,15 @@ public class Main
|
||||
com.jamesquinley.DelegationServices.delegationServices.connectionInit(status.betaServer);
|
||||
com.jamesquinley.DelegationServices.delegationServices.Purge();
|
||||
System.out.println( "We're starting the login delegation server, please wait one moment while we check a few things.");
|
||||
com.jamesquinley.DelegationServices.delegationServices.userAuthetication();
|
||||
System.out.println("We've started everything, requests are now being served");
|
||||
while (true) {
|
||||
|
||||
try {
|
||||
Thread.sleep(500);
|
||||
com.jamesquinley.DelegationServices.delegationServices.userAuthetication();
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user