Properly set PID on dummy connect events
This commit is contained in:
parent
89b9829b84
commit
497ec07bdf
|
@ -71,7 +71,10 @@ Device::Device(std::shared_ptr<dj::Receiver> receiver,
|
||||||
if(!event.linkEstablished)
|
if(!event.linkEstablished)
|
||||||
throw InvalidDevice(InvalidDevice::Asleep);
|
throw InvalidDevice(InvalidDevice::Asleep);
|
||||||
|
|
||||||
_pid = event.pid;
|
if(!event.fromTimeoutCheck)
|
||||||
|
_pid = event.pid;
|
||||||
|
else
|
||||||
|
_pid = receiver->getPairingInfo(_index).pid;
|
||||||
_init();
|
_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user