Merge PR #616: network device monitor: Clean up pending ping replies properly
This commit is contained in:
commit
13a5519a94
@ -615,8 +615,11 @@ void NetworkDeviceDiscoveryImpl::evaluateMonitor(NetworkDeviceMonitorImpl *monit
|
||||
monitor->setLastConnectionAttempt(QDateTime::currentDateTime());
|
||||
});
|
||||
|
||||
connect(reply, &PingReply::finished, monitor, [=](){
|
||||
connect(reply, &PingReply::destroyed, monitor, [=](){
|
||||
monitor->setCurrentPingReply(nullptr);
|
||||
});
|
||||
|
||||
connect(reply, &PingReply::finished, monitor, [=](){
|
||||
processMonitorPingResult(reply, monitor);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user