MCPcopy Create free account
hub / github.com/catabriga/graphwar / restartServer

Method restartServer

src/GlobalServer/GlobalServer.java:361–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

359 }
360
361 public void restartServer()
362 {
363 this.players = new Vector<LobbyPlayer>();
364 this.rooms = new Vector<Room>();
365
366 try
367 {
368 serverSocket.close();
369 serverSocket = new ServerSocket(Constants.GLOBAL_PORT);
370 }
371 catch (IOException e)
372 {
373 e.printStackTrace();
374 }
375 }
376
377 private void checkRooms()
378 {

Callers 1

runMethod · 0.95

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected