diff options
author | Melanie Thielker | 2009-06-19 20:46:17 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-06-19 20:46:17 +0000 |
commit | e4d26d7bfa4b4d4e775531a7dd400f41fc61f45f (patch) | |
tree | a15fb5f00eb11a26a49b287c76209fb3e80833d4 /OpenSim/Region/ReplaceableModules | |
parent | Thanks cmickeyb for a patch that checks for null assets in Cenome asset cache... (diff) | |
download | opensim-SC-e4d26d7bfa4b4d4e775531a7dd400f41fc61f45f.zip opensim-SC-e4d26d7bfa4b4d4e775531a7dd400f41fc61f45f.tar.gz opensim-SC-e4d26d7bfa4b4d4e775531a7dd400f41fc61f45f.tar.bz2 opensim-SC-e4d26d7bfa4b4d4e775531a7dd400f41fc61f45f.tar.xz |
When a shared module hooks OnClientClosed, it has no way of finding
out which client connection has closed. So, in multi-region sims, things
can get messy fast.
This introduces a second parameters, which is a Scene object ref. Minor
adjustments to custom modules may be required due to this change.
Diffstat (limited to 'OpenSim/Region/ReplaceableModules')
-rw-r--r-- | OpenSim/Region/ReplaceableModules/MoneyModule/SampleMoneyModule.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ReplaceableModules/MoneyModule/SampleMoneyModule.cs b/OpenSim/Region/ReplaceableModules/MoneyModule/SampleMoneyModule.cs index 5a5ba6d..6251293 100644 --- a/OpenSim/Region/ReplaceableModules/MoneyModule/SampleMoneyModule.cs +++ b/OpenSim/Region/ReplaceableModules/MoneyModule/SampleMoneyModule.cs | |||
@@ -698,7 +698,7 @@ namespace OpenSim.Region.ReplaceableModules.MoneyModule | |||
698 | /// When the client closes the connection we remove their accounting info from memory to free up resources. | 698 | /// When the client closes the connection we remove their accounting info from memory to free up resources. |
699 | /// </summary> | 699 | /// </summary> |
700 | /// <param name="AgentID"></param> | 700 | /// <param name="AgentID"></param> |
701 | public void ClientClosed(UUID AgentID) | 701 | public void ClientClosed(UUID AgentID, Scene scene) |
702 | { | 702 | { |
703 | 703 | ||
704 | } | 704 | } |
@@ -760,7 +760,7 @@ namespace OpenSim.Region.ReplaceableModules.MoneyModule | |||
760 | /// Event Handler for when the client logs out. | 760 | /// Event Handler for when the client logs out. |
761 | /// </summary> | 761 | /// </summary> |
762 | /// <param name="AgentId"></param> | 762 | /// <param name="AgentId"></param> |
763 | private void ClientLoggedOut(UUID AgentId) | 763 | private void ClientLoggedOut(UUID AgentId, Scene scene) |
764 | { | 764 | { |
765 | 765 | ||
766 | } | 766 | } |
@@ -771,7 +771,7 @@ namespace OpenSim.Region.ReplaceableModules.MoneyModule | |||
771 | /// <param name="client"></param> | 771 | /// <param name="client"></param> |
772 | public void ClientClosed(IClientAPI client) | 772 | public void ClientClosed(IClientAPI client) |
773 | { | 773 | { |
774 | ClientClosed(client.AgentId); | 774 | ClientClosed(client.AgentId, null); |
775 | } | 775 | } |
776 | 776 | ||
777 | /// <summary> | 777 | /// <summary> |