Get things back to mostly stable.

This commit is contained in:
James Quinley 2022-11-26 07:47:02 -08:00
parent bdffff72bf
commit 1a969fdec4
2 changed files with 14 additions and 12 deletions

View File

@ -2184,17 +2184,11 @@ public class delegationServices {
} }
public static void userAuthetication() { public static void userAuthetication() {
while (true) { Lrequest = dCollection.find(eq("status", false)).first();
final Runnable runnable = new Runnable() { if (!(Lrequest == null)) {
public void run() {
Lrequest = dCollection.find(eq("status", false)).first();
if (!(Lrequest == null)) {
delegationProcesser(); delegationProcesser();
} }
}
};
runnable.run();
}
} }

View File

@ -3,7 +3,7 @@ package com.jamesquinley;
import com.jamesquinley.DelegationServices.status; 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. Also this is multi line so I can justify using this type of comment.
*/ */
public class Main public class Main
@ -13,7 +13,15 @@ public class Main
com.jamesquinley.DelegationServices.delegationServices.connectionInit(status.betaServer); com.jamesquinley.DelegationServices.delegationServices.connectionInit(status.betaServer);
com.jamesquinley.DelegationServices.delegationServices.Purge(); 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."); 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"); 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();
}
}
} }
} }