public final ModEntry pollFromQueue() {
		while (this.queue.isEmpty()) {
			if (this.crawlDone) {
				return null;
			}
			try {
				wait();
			} catch (final InterruptedException e) {
				return null;
			}
		}
		return this.queue.remove();
	}