diff options
-rw-r--r-- | OpenSim/Framework/Servers/BaseHttpServer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index 3d125fb..871ea57 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs | |||
@@ -587,6 +587,8 @@ namespace OpenSim.Framework.Servers | |||
587 | if (m_rpcHandlers.TryGetValue(methodName, out method)) | 587 | if (m_rpcHandlers.TryGetValue(methodName, out method)) |
588 | { | 588 | { |
589 | xmlRpcResponse = method(xmlRprcRequest); | 589 | xmlRpcResponse = method(xmlRprcRequest); |
590 | // if the method wasn't found, we can't determine KeepAlive state anyway, so lets do it only here | ||
591 | response.KeepAlive = m_rpcHandlersKeepAlive[methodName]; | ||
590 | } | 592 | } |
591 | else | 593 | else |
592 | { | 594 | { |
@@ -596,7 +598,6 @@ namespace OpenSim.Framework.Servers | |||
596 | } | 598 | } |
597 | 599 | ||
598 | responseString = XmlRpcResponseSerializer.Singleton.Serialize(xmlRpcResponse); | 600 | responseString = XmlRpcResponseSerializer.Singleton.Serialize(xmlRpcResponse); |
599 | response.KeepAlive = m_rpcHandlersKeepAlive[methodName]; | ||
600 | } | 601 | } |
601 | else | 602 | else |
602 | { | 603 | { |