resolved: don't override zone item state after starting the probe
After all, the probe might be finished immeidately (due to resources, ...), and we shouldn't then set the state back to probing.
This commit is contained in:
@@ -279,14 +279,14 @@ int dns_zone_put(DnsZone *z, DnsScope *s, DnsResourceRecord *rr, bool probe) {
|
||||
if (established)
|
||||
i->state = DNS_ZONE_ITEM_ESTABLISHED;
|
||||
else {
|
||||
i->state = DNS_ZONE_ITEM_PROBING;
|
||||
|
||||
r = dns_zone_item_probe_start(i);
|
||||
if (r < 0) {
|
||||
dns_zone_item_remove_and_free(z, i);
|
||||
i = NULL;
|
||||
return r;
|
||||
}
|
||||
|
||||
i->state = DNS_ZONE_ITEM_PROBING;
|
||||
}
|
||||
} else
|
||||
i->state = DNS_ZONE_ITEM_ESTABLISHED;
|
||||
|
||||
Reference in New Issue
Block a user