forked from nanomsg/nng
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't bump error counters for NNG_ECLOSED.
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
// | ||
|
@@ -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; | ||
|