Correct USERID not updated before setting up files.

master
sigonasr2 4 years ago
parent e9e3a0bf0d
commit e9b45b34b7
  1. BIN
      DivaBotGuardian/DivaBotGuardian.jar
  2. 2
      DivaBotGuardian/src/sig/Guardian.java

@ -16,11 +16,11 @@ public class Guardian {
} }
public static void main(String[] args) throws InterruptedException, IOException { public static void main(String[] args) throws InterruptedException, IOException {
USERID = Integer.parseInt(args[0]);
File f = new File("streams","output"+USERID+".png"); File f = new File("streams","output"+USERID+".png");
File tempf = new File("streams","tempoutput"+USERID+".png"); File tempf = new File("streams","tempoutput"+USERID+".png");
switch (currentStage) { switch (currentStage) {
case STARTING:{ case STARTING:{
USERID = Integer.parseInt(args[0]);
while (currentStage==STAGE.STARTING) { while (currentStage==STAGE.STARTING) {
if (f.exists()) { if (f.exists()) {
streamLastModified = f.lastModified(); streamLastModified = f.lastModified();

Loading…
Cancel
Save