diff options
| author | Garrett D'Amore <garrett@damore.org> | 2023-02-05 19:48:09 -0400 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2023-02-05 19:48:09 -0400 |
| commit | a255ce5f8645c6eeb44dfb00d3b00aa2d57d93c0 (patch) | |
| tree | 35c0ac2975baa1bf65c35ab414c3f73aea367e31 | |
| parent | a1bc737bcc84cda545d6ff3b432235f5f2414f97 (diff) | |
| download | nng-a255ce5f8645c6eeb44dfb00d3b00aa2d57d93c0.tar.gz nng-a255ce5f8645c6eeb44dfb00d3b00aa2d57d93c0.tar.bz2 nng-a255ce5f8645c6eeb44dfb00d3b00aa2d57d93c0.zip | |
Don't bump error counters for NNG_ECLOSED.
| -rw-r--r-- | src/core/dialer.c | 5 |
1 files changed, 4 insertions, 1 deletions
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. <info@staysail.tech> +// Copyright 2023 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // Copyright 2018 Devolutions <info@devolutions.net> // @@ -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; |
