Don't close diveDir in fileExists (#20035)

This commit is contained in:
Sergey1560 2020-11-06 03:13:21 +03:00 committed by GitHub
parent 323b3a63d6
commit f924344cc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -637,7 +637,7 @@ bool CardReader::fileExists(const char * const path) {
if (fname) { if (fname) {
diveDir->rewind(); diveDir->rewind();
selectByName(*diveDir, fname); selectByName(*diveDir, fname);
diveDir->close(); //diveDir->close();
} }
return !!fname; return !!fname;
} }