Skip to content

Commit

Permalink
Don't bump error counters for NNG_ECLOSED.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Feb 5, 2023
1 parent a1bc737 commit a255ce5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/dialer.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2021 Staysail Systems, Inc. <[email protected]>
// Copyright 2023 Staysail Systems, Inc. <[email protected]>
// Copyright 2018 Capitar IT Group BV <[email protected]>
// Copyright 2018 Devolutions <[email protected]>
//
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a255ce5

Please sign in to comment.