diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs index 35d1905..297913e 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs | |||
@@ -404,11 +404,19 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Concierge | |||
404 | payloadStream.Write(payload); | 404 | payloadStream.Write(payload); |
405 | payloadStream.Close(); | 405 | payloadStream.Close(); |
406 | 406 | ||
407 | HttpWebResponse response = updatePost.GetResponse() as HttpWebResponse; | 407 | updatePost.BeginGetResponse(UpdateBrokerDone, updatePost); |
408 | response.Close(); | 408 | _log.DebugFormat("[Concierge] async broker update to {0} started", _brokerURI); |
409 | _log.DebugFormat("[Concierge] broker update: status {0}", response.StatusCode); | ||
410 | } | 409 | } |
411 | 410 | ||
411 | private void UpdateBrokerDone(IAsyncResult result) | ||
412 | { | ||
413 | HttpWebRequest updatePost = result.AsyncState as HttpWebRequest; | ||
414 | using (HttpWebResponse response = updatePost.EndGetResponse(result) as HttpWebResponse) | ||
415 | { | ||
416 | response.Close(); | ||
417 | _log.DebugFormat("[Concierge] broker update: status {0}", response.StatusCode); | ||
418 | } | ||
419 | } | ||
412 | 420 | ||
413 | protected void WelcomeAvatar(ScenePresence agent, Scene scene) | 421 | protected void WelcomeAvatar(ScenePresence agent, Scene scene) |
414 | { | 422 | { |