Skip to content

Commit

Permalink
Correct changes from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed Jul 29, 2018
1 parent d69840f commit d4f4a1c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -115,7 +116,7 @@ public InternalSubServer(InternalHost host, String name, boolean enabled, int po
e.printStackTrace();
}
}
this.temporary = false;
this.temporary = temporary && start();
this.lock = false;
}

Expand Down

0 comments on commit d4f4a1c

Please sign in to comment.