Prevents the browser from locking on shutdown if the browser ran into a startup error.

This commit is contained in:
Markil3
2021-09-15 09:35:16 -06:00
parent f7370ba08a
commit f8be50af9d
3 changed files with 20 additions and 4 deletions

View File

@@ -69,6 +69,7 @@ public class Browser extends MessageRunner
logger.error(scanner.nextLine());
}
}
notifyAllInstance();
throw new IOException("Error in browser launch (exit code " + startExit + ")");
}
}
@@ -157,6 +158,14 @@ public class Browser extends MessageRunner
}
}
/**
*
*/
public void stop()
{
this.running = false;
}
/**
* Utility method for launching a browser instance
*