Skip to content

Commit

Permalink
[Truffle] Rename socket to port.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 27, 2015
1 parent 0f550c5 commit a12b6f1
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -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;
Expand Down

0 comments on commit a12b6f1

Please sign in to comment.