From a255ce5f8645c6eeb44dfb00d3b00aa2d57d93c0 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 5 Feb 2023 19:48:09 -0400 Subject: Don't bump error counters for NNG_ECLOSED. --- src/core/dialer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/dialer.c b/src/core/dialer.c index c7bdfc3b..443571bc 100644 --- a/src/core/dialer.c +++ b/src/core/dialer.c @@ -1,5 +1,5 @@ // -// Copyright 2021 Staysail Systems, Inc. +// Copyright 2023 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // Copyright 2018 Devolutions // @@ -198,6 +198,9 @@ nni_dialer_bump_error(nni_dialer *d, int err) case NNG_ENOMEM: nni_stat_inc(&d->st_oom, 1); break; + case NNG_ECLOSED: + // do nothing. + break; default: nni_stat_inc(&d->st_other, 1); break; -- cgit v1.2.3-70-g09d2