Commit 6cc3bddd authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Make sure to close the file once we are done.

parent 7320f942
Pipeline #196227 canceled with stage
......@@ -330,6 +330,7 @@ QByteArray ExternalCommandHelper::ReadData(const QString& device, const qint64 o
if (rval) {
return buffer;
}
close(fd);
return QByteArray();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment