fix: close the correct mds
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/push/docs Pipeline was successful

This commit is contained in:
Johannes Frohnmeyer 2024-07-07 12:58:09 +02:00
parent 91c5686fde
commit fb58da96c8
Signed by: Johannes
GPG Key ID: E76429612C2929F4

View File

@ -34,7 +34,10 @@ public interface ModsDirScanner extends Closeable {
} }
static void closeAll() { static void closeAll() {
FlowMds.closeAll();//ThreadedMds.closeAll(); switch (MDS_KIND) {
case "flow" -> FlowMds.closeAll();
case "threaded" -> ThreadedMds.closeAll();
}
} }
boolean isComplete(ScanStage stage); boolean isComplete(ScanStage stage);