We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2636557 commit dbc438eCopy full SHA for dbc438e
1 file changed
RemoteInput/Plugin/Plugin.cxx
@@ -77,6 +77,11 @@ std::unique_ptr<Hook> exit_process;
77
78
[[gnu::stdcall]] void __unload()
79
{
80
+ // Force leak and let the OS cleanup otherwise processes hang
81
+ // when destructors are called because `std::thread` will cause a recursive dll lock
82
+ // to be held upon unload. IE: A dll cannot unload itself.
83
+ control_center.release();
84
+
85
#if defined(DEBUG)
86
printf("DETACHED FROM: %d\n", getpid());
87
#endif
0 commit comments