Skip to content
Permalink
Browse files
[Truffle] Rename socket to port.
  • Loading branch information
eregon committed Jan 27, 2015
1 parent 0f550c5 commit a12b6f1233130dd04712f9565c7a3fb61a5635cb
Showing 1 changed file with 4 additions and 4 deletions.
@@ -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.