public synchronized void scanLibrary() { if (scanner == null) { scanner = new Thread(this, "Library Scanner"); scanner.start(); } else if (scanner.isAlive()) { LOGGER.info("Scanner is already running !"); } else { scanner = new Thread(this, "Library Scanner"); scanner.start(); } }
public void scanLibrary() { if (isScanLibraryRunning()) { LOGGER.info(Messages.getString("NetworkTab.70")); } else { scanner = new Thread(this, "Library Scanner"); scanner.start(); } }