fix a recent bug on login service hg inventory

This commit is contained in:
UbitUmarov
2020-12-26 14:19:40 +00:00
parent 98e69d9015
commit 81e13df897

View File

@@ -195,7 +195,7 @@ namespace OpenSim.Services.LLLoginService
{
// TODO: Remove HGInventoryServiceConstructorArg after 0.9 release
string hgInvServiceArg = m_LoginServerConfig.GetString("HGInventoryServiceConstructorArg", string.Empty);
if (string.IsNullOrWhiteSpace(hgInvServiceArg))
if (!string.IsNullOrWhiteSpace(hgInvServiceArg))
{
m_log.Warn("[LLOGIN SERVICE]: You are using HGInventoryServiceConstructorArg, which is deprecated. See example file for correct syntax.");
hgInvServicePlugin = hgInvServiceArg + "@" + hgInvServicePlugin;
@@ -212,7 +212,7 @@ namespace OpenSim.Services.LLLoginService
m_log.DebugFormat("[LLOGIN SERVICE]: Using LibraryService given as argument");
m_LibraryService = libraryService;
}
else if (libService != string.Empty)
else if (!string.IsNullOrWhiteSpace(libService))
{
m_log.DebugFormat("[LLOGIN SERVICE]: Using instantiated LibraryService");
m_LibraryService = ServerUtils.LoadPlugin<ILibraryService>(libService, args);