Core: finalize plugin services after discovery
This commit is contained in:
1 parent
dfbbdaaf01
commit
a277f2102b
3 files changed
+15
-9
No files matched your search
+11
-9
@@ -317,11 +317,6 @@ namespace Echoion::Core
|
||||
publish(*result);
|
||||
plugins_.watch(*result);
|
||||
}
|
||||
if (!bindShortenerServices()) {
|
||||
Void::Log::warn("PluginHost",
|
||||
"Loaded plugins do not provide the configured "
|
||||
"short URL service");
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
@@ -378,11 +373,18 @@ namespace Echoion::Core
|
||||
publish(id);
|
||||
plugins_.watch(id);
|
||||
}
|
||||
if (!bindShortenerServices()) {
|
||||
Void::Log::warn("PluginHost",
|
||||
"Managed plugins do not provide the configured "
|
||||
"short URL service");
|
||||
}
|
||||
|
||||
bool PluginHost::finalizeLoading()
|
||||
{
|
||||
std::scoped_lock operationLock{reconfigureMutex_};
|
||||
if (bindShortenerServices()) {
|
||||
return true;
|
||||
}
|
||||
Void::Log::warn("PluginHost",
|
||||
"Loaded plugins do not provide the configured short "
|
||||
"URL service");
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string PluginHost::pluginConfiguration(std::string_view name) const
|
||||
|
||||
Reference in new issue
Block a user