diff options
author | Tom Grimshaw | 2010-05-17 14:14:19 -0700 |
---|---|---|
committer | Tom Grimshaw | 2010-05-17 14:32:21 -0700 |
commit | 6bc7e3429f9ac6cb57fbaa695223c3d76c189f77 (patch) | |
tree | 78d5187d6544f6d5c637978c58b43063ddde9581 /OpenSim/Region | |
parent | Merge branch 'master' of ssh://3dhosting.de/var/git/careminster (diff) | |
download | opensim-SC-6bc7e3429f9ac6cb57fbaa695223c3d76c189f77.zip opensim-SC-6bc7e3429f9ac6cb57fbaa695223c3d76c189f77.tar.gz opensim-SC-6bc7e3429f9ac6cb57fbaa695223c3d76c189f77.tar.bz2 opensim-SC-6bc7e3429f9ac6cb57fbaa695223c3d76c189f77.tar.xz |
Provide interface to prevent the client close function from sending the stop packet
Diffstat (limited to 'OpenSim/Region')
4 files changed, 30 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 5c774b5..960e0a2 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -470,18 +470,30 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
470 | 470 | ||
471 | #region Client Methods | 471 | #region Client Methods |
472 | 472 | ||
473 | |||
473 | /// <summary> | 474 | /// <summary> |
474 | /// Shut down the client view | 475 | /// Shut down the client view |
475 | /// </summary> | 476 | /// </summary> |
476 | public void Close() | 477 | public void Close() |
477 | { | 478 | { |
479 | Close(true); | ||
480 | } | ||
481 | |||
482 | /// <summary> | ||
483 | /// Shut down the client view | ||
484 | /// </summary> | ||
485 | public void Close(bool sendStop) | ||
486 | { | ||
478 | m_log.DebugFormat( | 487 | m_log.DebugFormat( |
479 | "[CLIENT]: Close has been called for {0} attached to scene {1}", | 488 | "[CLIENT]: Close has been called for {0} attached to scene {1}", |
480 | Name, m_scene.RegionInfo.RegionName); | 489 | Name, m_scene.RegionInfo.RegionName); |
481 | 490 | ||
482 | // Send the STOP packet | 491 | if (sendStop) |
483 | DisableSimulatorPacket disable = (DisableSimulatorPacket)PacketPool.Instance.GetPacket(PacketType.DisableSimulator); | 492 | { |
484 | OutPacket(disable, ThrottleOutPacketType.Unknown); | 493 | // Send the STOP packet |
494 | DisableSimulatorPacket disable = (DisableSimulatorPacket)PacketPool.Instance.GetPacket(PacketType.DisableSimulator); | ||
495 | OutPacket(disable, ThrottleOutPacketType.Unknown); | ||
496 | } | ||
485 | 497 | ||
486 | IsActive = false; | 498 | IsActive = false; |
487 | 499 | ||
diff --git a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs index d2b0161..b074313 100644 --- a/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleModule/MyNpcCharacter.cs | |||
@@ -825,6 +825,11 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
825 | 825 | ||
826 | public void Close() | 826 | public void Close() |
827 | { | 827 | { |
828 | Close(true); | ||
829 | } | ||
830 | |||
831 | public void Close(bool sendStop) | ||
832 | { | ||
828 | } | 833 | } |
829 | 834 | ||
830 | public void Start() | 835 | public void Start() |
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs index 85e3fb3..0b6647d 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs | |||
@@ -877,6 +877,11 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
877 | 877 | ||
878 | public void Close() | 878 | public void Close() |
879 | { | 879 | { |
880 | Close(true); | ||
881 | } | ||
882 | |||
883 | public void Close(bool sendStop) | ||
884 | { | ||
880 | Disconnect(); | 885 | Disconnect(); |
881 | } | 886 | } |
882 | 887 | ||
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index cf2076f..938293f 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -838,6 +838,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
838 | 838 | ||
839 | public void Close() | 839 | public void Close() |
840 | { | 840 | { |
841 | Close(true); | ||
842 | } | ||
843 | |||
844 | public void Close(bool sendStop) | ||
845 | { | ||
841 | } | 846 | } |
842 | 847 | ||
843 | public void Start() | 848 | public void Start() |