Jeff-Lewis / cls-hooked

cls-hooked : CLS using AsynWrap or async_hooks instead of async-listener for node 4.7+
BSD 2-Clause "Simplified" License
758 stars 89 forks source link

Fix for multiple instances #46

Closed RNachmanyAnyVision closed 4 years ago

RNachmanyAnyVision commented 5 years ago

When you have cls-hooked in multiple libraries, process.namespaces is cleared when the second instance is loaded and prevent you the ability to access the first namespace.

puzpuzpuz commented 4 years ago

+1 for merging this one, as it's valuable fix for my library. See this issue for the discussion.

puzpuzpuz commented 4 years ago

BTW this PR seems to be related with #25