Oops, don't read the device info while holding the mutex
This commit is contained in:
parent
9c19bfd218
commit
01b6d39341
@ -105,10 +105,12 @@ quint64 iLister::Connection::GetInfoLongLong(const char* key) {
|
||||
void iLister::DeviceAddedCallback(const char* uuid) {
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
DeviceInfo info = ReadDeviceInfo(uuid);
|
||||
QString id = UniqueId(uuid);
|
||||
|
||||
{
|
||||
QMutexLocker l(&mutex_);
|
||||
devices_[id] = ReadDeviceInfo(uuid);
|
||||
devices_[id] = info;
|
||||
}
|
||||
|
||||
emit DeviceAdded(id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user