private void closeServer() { try { server.close(); } catch (IOException e) { LOG.log(Level.WARNING, "Unable to close FitClient socket server", e); } }
public void stop() throws Exception { if (theService != null) { theService.close(); theService = null; } }