Closed bostick closed 1 year ago
Have you tried ZeroTierNative.zts_node_free()
? (Haven't tested this but might work)
@janvanbouwel Thanks for looking. I have fix (https://github.com/zerotier/libzt/pull/243) but wanted to create proper issue for this.
Thank you for fixing this, definitely needed.
Funny bit of history: since we use lwip and it was designed for embedded systems which are usually just turned off when you're done (so it had no actual thread shutdown mechanism) for a long time we didn't have a proper cleanup of resources and this was generally ok in userspace on mobile since the libzt instance usually had the same lifetime as the mobile application itself.
With this basic example:
We can compile and run:
The expected behavior is that the process exits, but crucially, the process does not actually exit.