Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -26,18 +26,18 @@
public class StackServerManager {

private final RubyContext context;
private final int socket;
private final int port;

public StackServerManager(RubyContext context, int socket) {
public StackServerManager(RubyContext context, int port) {
this.context = context;
this.socket = socket;
this.port = port;
}

public void start() {
final HttpServer server;

try {
server = HttpServer.create(new InetSocketAddress(socket), 0);
server = HttpServer.create(new InetSocketAddress(port), 0);
} catch (IOException e) {
e.printStackTrace();
return;

0 comments on commit a12b6f1

Please sign in to comment.