network device monitor: clean up pending ping replies properly during shutdown
This commit is contained in:
parent
d43b9dc737
commit
adf85cc15c
@ -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