aboutsummaryrefslogtreecommitdiff
path: root/src/core/dialer.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2023-02-05 19:48:09 -0400
committerGarrett D'Amore <garrett@damore.org>2023-02-05 19:48:09 -0400
commita255ce5f8645c6eeb44dfb00d3b00aa2d57d93c0 (patch)
tree35c0ac2975baa1bf65c35ab414c3f73aea367e31 /src/core/dialer.c
parenta1bc737bcc84cda545d6ff3b432235f5f2414f97 (diff)
downloadnng-a255ce5f8645c6eeb44dfb00d3b00aa2d57d93c0.tar.gz
nng-a255ce5f8645c6eeb44dfb00d3b00aa2d57d93c0.tar.bz2
nng-a255ce5f8645c6eeb44dfb00d3b00aa2d57d93c0.zip
Don't bump error counters for NNG_ECLOSED.
Diffstat (limited to 'src/core/dialer.c')
-rw-r--r--src/core/dialer.c5
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;