There will be about 1h of downtime on 2020-03-02 at 13:00 UTC+1 (change of servers and upgrade to Heptapod 0.20.0 final)

Commit c2931106 authored by Gleb Popov's avatar Gleb Popov

Fix a MMC workaround - it was causing drive objects to be created multiple times.

parent 1346ee88275a
......@@ -27,6 +27,7 @@
#include "devdthread.h"
#include <QHash>
#include <QRegularExpression>
#include <errno.h>
#include <sys/types.h>
......@@ -64,7 +65,8 @@ void DevdThread::parseLine(QString line)
emit blockAdded(devArg);
// there are no subsystem=disk events for MMC, try to workaround it
if(devArg.startsWith("mmcsd"))
QRegularExpression re("mmcsd\\d$");
if(re.match(devArg).hasMatch())
emit driveAdded(devArg);
}
if(data["type"] == "DESTROY")
......
Markdown is supported
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