diff options
author | Dr Scofield | 2009-01-26 21:33:36 +0000 |
---|---|---|
committer | Dr Scofield | 2009-01-26 21:33:36 +0000 |
commit | 494cfdfe373787b0e71cdf7fd2e98b92ca8f61f4 (patch) | |
tree | ccca1dcbf9a7a395bd0ca0064b0d810ab4aab73e | |
parent | ~ fix: Concierge reports avatar leaving region twice (diff) | |
download | opensim-SC_OLD-494cfdfe373787b0e71cdf7fd2e98b92ca8f61f4.zip opensim-SC_OLD-494cfdfe373787b0e71cdf7fd2e98b92ca8f61f4.tar.gz opensim-SC_OLD-494cfdfe373787b0e71cdf7fd2e98b92ca8f61f4.tar.bz2 opensim-SC_OLD-494cfdfe373787b0e71cdf7fd2e98b92ca8f61f4.tar.xz |
~ turning synchronous broker update into asynchronous one
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 | { |