Another small issue I'm facing is this warning message being printed after running gd-plug:
WARNING: A Thread object has been destroyed without wait_to_finish() having been called on it. Please do so to ensure correct cleanup of the thread.
at: ~Thread (core/os/thread.cpp:116)
While the plugin seems to work fine, it would be nice to not see this warning message every time I run it.
Simply adding a call to threadpool._flush_threads() in _finalize() resolves the warning. However, I notice that _flush_threads() is a private method, so I'm not sure if this is how you want to fix it.
Thanks for the fix!
I think I will first check what is causing the warnings since it doesn't happen in 3.x, otherwise, I might consider simply making _flush_threads a public method.
Another small issue I'm facing is this warning message being printed after running gd-plug:
While the plugin seems to work fine, it would be nice to not see this warning message every time I run it.
Simply adding a call to
threadpool._flush_threads()
in_finalize()
resolves the warning. However, I notice that_flush_threads()
is a private method, so I'm not sure if this is how you want to fix it.Again, thanks for your hard work on this fantastic plugin!