Skip to content

Commit

Permalink
Derp
Browse files Browse the repository at this point in the history
  • Loading branch information
aumgn committed Sep 13, 2013
1 parent 22741d0 commit e50caa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/glydar/glydar/Glydar.java
Expand Up @@ -20,7 +20,7 @@ public class Glydar {

private static GServer server;
private static ServerBootstrap serverBootstrap;
private static Thread serverThread = new Thread(server);
private static Thread serverThread;

public static void main(String[] args) {
Stopwatch watch = new Stopwatch();
Expand All @@ -29,6 +29,7 @@ public static void main(String[] args) {
GlydarBootstrap bootstrap = new GlydarBootstrap(args);
server = new GServer(bootstrap);
ParaGlydar.setServer(server);
serverThread = new Thread(server);

serverBootstrap = new ServerBootstrap();
serverBootstrap.childHandler(new ProtocolInitializer())
Expand Down Expand Up @@ -57,6 +58,7 @@ public ServerChannel newChannel() {

watch.stop();
server.getLogger().info("Server started in {0}ms", watch.elapsed(TimeUnit.MILLISECONDS));

server.getCommandReader().start();
serverThread.start();
}
Expand Down

0 comments on commit e50caa0

Please sign in to comment.