aboutsummaryrefslogtreecommitdiff
path: root/tests/tcp6.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-09 23:45:21 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-11 11:03:12 -0800
commit713b80f440cb414cd0b856bde0ea1b31f939777f (patch)
tree1186c42418559c85719023bde3e919aa2df7fcef /tests/tcp6.c
parentcbe9a27ef7485977fbc7c713376b096b6723da3d (diff)
downloadnng-713b80f440cb414cd0b856bde0ea1b31f939777f.tar.gz
nng-713b80f440cb414cd0b856bde0ea1b31f939777f.tar.bz2
nng-713b80f440cb414cd0b856bde0ea1b31f939777f.zip
refactor initialization/finalization
Applications must now call nng_init(), but they can supply a set of parameters optionally. The code is now safe for multiple libraries to do this concurrently, meaning nng_fini no longer can race against another instance starting up. The nni_init checks on all public APIs are removed now.
Diffstat (limited to 'tests/tcp6.c')
-rw-r--r--tests/tcp6.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/tcp6.c b/tests/tcp6.c
index 79e6fa47..f6fd5a7c 100644
--- a/tests/tcp6.c
+++ b/tests/tcp6.c
@@ -70,8 +70,6 @@ check_props_v6(nng_msg *msg)
}
TestMain("TCP (IPv6) Transport", {
- nni_init();
-
if (has_v6()) {
trantest_test_extended("tcp://[::1]:", check_props_v6);
} else {