Avoid crashes on plugin unload while loading.

This commit is contained in:
Martín Lucas Golini
2024-09-28 13:42:54 -03:00
parent 49e56f05a2
commit 5a7e7e5387
8 changed files with 9 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ void Plugin::showMessage( LSPMessageType type, const std::string& message,
&msgReq );
}
Plugin::~Plugin() {
void Plugin::waitUntilLoaded() {
while ( mLoading )
Sys::sleep( Milliseconds( 1 ) );
}