[runner] Corrects logging of close() status (flutter/engine#16698)

close() returns a nonzero in case of an error.  Old code had it log
only when *no* error happens on close, which is exactly the opposite
of what we want.
This commit is contained in:
Filip Filmar
2020-03-25 16:31:46 -07:00
committed by GitHub
parent d1ab61bec1
commit 36404497fe

View File

@@ -75,7 +75,7 @@ bool InitializeTZData() {
<< strerror(errno);
return false;
}
if (!close(fd)) {
if (close(fd)) {
FML_LOG(WARNING) << "Could not close: " << tzdata_dir << ": "
<< strerror(errno);
}