Correct changes from last commit

This commit is contained in:
ME1312 2018-07-29 19:05:50 -04:00
parent d69840f439
commit d4f4a1cf01
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8

View File

@ -58,11 +58,12 @@ public class InternalSubServer extends SubServerContainer {
* @param stopcmd Stop Command
* @param hidden Hidden Status
* @param restricted Restricted Status
* @param temporary Temporary Status
* @throws InvalidServerException
*/
public InternalSubServer(InternalHost host, String name, boolean enabled, int port, String motd, boolean log, String directory, Executable executable, String stopcmd, boolean hidden, boolean restricted) throws InvalidServerException {
public InternalSubServer(InternalHost host, String name, boolean enabled, int port, String motd, boolean log, String directory, Executable executable, String stopcmd, boolean hidden, boolean restricted, boolean temporary) throws InvalidServerException {
super(host, name, port, motd, hidden, restricted);
if (Util.isNull(host, name, enabled, port, motd, log, directory, executable, stopcmd, hidden, restricted)) throw new NullPointerException();
if (Util.isNull(host, name, enabled, port, motd, log, directory, executable, stopcmd, hidden, restricted, temporary)) throw new NullPointerException();
this.host = host;
this.enabled = enabled;
this.editable = false;
@ -115,7 +116,7 @@ public class InternalSubServer extends SubServerContainer {
e.printStackTrace();
}
}
this.temporary = false;
this.temporary = temporary && start();
this.lock = false;
}