Remove the extra decstats on STATID_ACTIVE for children sockets

(cherry picked from commit 26842ac25c)
This commit is contained in:
Ondřej Surý
2020-03-26 10:40:35 +01:00
committed by Ondřej Surý
parent 3559b32dcc
commit 0e9b0d79fb

View File

@@ -718,11 +718,6 @@ nmsocket_cleanup(isc_nmsocket_t *sock, bool dofree) {
for (int i = 0; i < sock->nchildren; i++) {
if (!atomic_load(&sock->children[i].destroying)) {
nmsocket_cleanup(&sock->children[i], false);
if (sock->statsindex != NULL) {
isc__nm_decstats(
sock->mgr,
sock->statsindex[STATID_ACTIVE]);
}
}
}