cosmetics
This commit is contained in:
@@ -75,7 +75,6 @@ namespace OpenSim.ConsoleClient
|
|||||||
|
|
||||||
Requester.MakeRequest("http://"+m_Host+":"+m_Port.ToString()+"/StartSession/", String.Format("USER={0}&PASS={1}", m_User, m_Pass), LoginReply);
|
Requester.MakeRequest("http://"+m_Host+":"+m_Port.ToString()+"/StartSession/", String.Format("USER={0}&PASS={1}", m_User, m_Pass), LoginReply);
|
||||||
|
|
||||||
string pidFile = serverConfig.GetString("PIDFile", String.Empty);
|
|
||||||
|
|
||||||
while (m_Server.Running)
|
while (m_Server.Running)
|
||||||
{
|
{
|
||||||
@@ -83,7 +82,8 @@ namespace OpenSim.ConsoleClient
|
|||||||
MainConsole.Instance.Prompt();
|
MainConsole.Instance.Prompt();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pidFile != String.Empty)
|
string pidFile = serverConfig.GetString("PIDFile", string.Empty);
|
||||||
|
if (pidFile.Length > 0)
|
||||||
File.Delete(pidFile);
|
File.Delete(pidFile);
|
||||||
|
|
||||||
Environment.Exit(0);
|
Environment.Exit(0);
|
||||||
|
|||||||
@@ -122,8 +122,7 @@ namespace OpenSim.Data.MySQL
|
|||||||
|
|
||||||
public bool Store(AuthenticationData data)
|
public bool Store(AuthenticationData data)
|
||||||
{
|
{
|
||||||
if (data.Data.ContainsKey("UUID"))
|
data.Data.Remove("UUID");
|
||||||
data.Data.Remove("UUID");
|
|
||||||
|
|
||||||
string[] fields = new List<string>(data.Data.Keys).ToArray();
|
string[] fields = new List<string>(data.Data.Keys).ToArray();
|
||||||
|
|
||||||
|
|||||||
@@ -372,7 +372,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||||||
|
|
||||||
public void RemoveWebSocketHandler(string servicepath)
|
public void RemoveWebSocketHandler(string servicepath)
|
||||||
{
|
{
|
||||||
m_WebSocketHandlers.TryRemove(servicepath, out WebSocketRequestDelegate dummy);
|
m_WebSocketHandlers.TryRemove(servicepath, out _);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<string> GetStreamHandlerKeys()
|
public List<string> GetStreamHandlerKeys()
|
||||||
@@ -526,7 +526,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||||||
|
|
||||||
public void RemoveIndexPHPMethodHandler(string key)
|
public void RemoveIndexPHPMethodHandler(string key)
|
||||||
{
|
{
|
||||||
m_indexPHPmethods.TryRemove(key, out SimpleStreamMethod sh);
|
m_indexPHPmethods.TryRemove(key, out _);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SimpleStreamMethod TryGetIndexPHPMethodHandler(string key)
|
public SimpleStreamMethod TryGetIndexPHPMethodHandler(string key)
|
||||||
@@ -543,7 +543,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||||||
|
|
||||||
public void RemoveGlobalPMethodHandler(string key)
|
public void RemoveGlobalPMethodHandler(string key)
|
||||||
{
|
{
|
||||||
m_globalMethods.TryRemove(key, out SimpleStreamMethod sh);
|
m_globalMethods.TryRemove(key, out _);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool TryGetGlobalMethodHandler(string key, out SimpleStreamMethod sh)
|
public bool TryGetGlobalMethodHandler(string key, out SimpleStreamMethod sh)
|
||||||
|
|||||||
@@ -61,12 +61,11 @@ namespace OSHttpServer
|
|||||||
|
|
||||||
private void OnFreeContext(object sender, DisconnectedEventArgs e)
|
private void OnFreeContext(object sender, DisconnectedEventArgs e)
|
||||||
{
|
{
|
||||||
var imp = sender as HttpClientContext;
|
if (sender is HttpClientContext imp && imp.contextID >= 0)
|
||||||
if (imp == null || imp.contextID < 0)
|
{
|
||||||
return;
|
m_activeContexts.TryRemove(imp.contextID, out _);
|
||||||
|
imp.Close();
|
||||||
m_activeContexts.TryRemove(imp.contextID, out HttpClientContext dummy);
|
}
|
||||||
imp.Close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -620,7 +620,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
|
|||||||
|
|
||||||
// Trim off the file portion if we aren't already dealing with a directory path
|
// Trim off the file portion if we aren't already dealing with a directory path
|
||||||
if (TarArchiveReader.TarEntryType.TYPE_DIRECTORY != entryType)
|
if (TarArchiveReader.TarEntryType.TYPE_DIRECTORY != entryType)
|
||||||
path = path.Remove(path.LastIndexOf("/") + 1);
|
path = path.Remove(path.LastIndexOf('/') + 1);
|
||||||
|
|
||||||
InventoryFolderBase foundFolder
|
InventoryFolderBase foundFolder
|
||||||
= ReplicateArchivePathToUserInventory(
|
= ReplicateArchivePathToUserInventory(
|
||||||
|
|||||||
@@ -724,7 +724,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||||||
{
|
{
|
||||||
if (linknum == ScriptBaseClass.LINK_THIS)
|
if (linknum == ScriptBaseClass.LINK_THIS)
|
||||||
return part;
|
return part;
|
||||||
|
|
||||||
if (linknum <= part.ParentGroup.PrimCount)
|
if (linknum <= part.ParentGroup.PrimCount)
|
||||||
return part.ParentGroup.GetLinkNumPart(linknum);
|
return part.ParentGroup.GetLinkNumPart(linknum);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user