aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/OpenSimClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/OpenSimClient.cs')
-rw-r--r--src/OpenSimClient.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OpenSimClient.cs b/src/OpenSimClient.cs
index 8f07065..59833d8 100644
--- a/src/OpenSimClient.cs
+++ b/src/OpenSimClient.cs
@@ -89,7 +89,6 @@ namespace OpenSim
89 BinaryReader br = new BinaryReader(AssetResponse.GetResponseStream()); 89 BinaryReader br = new BinaryReader(AssetResponse.GetResponseStream());
90 idata = br.ReadBytes((int)AssetResponse.ContentLength); 90 idata = br.ReadBytes((int)AssetResponse.ContentLength);
91 br.Close(); 91 br.Close();
92 AssetResponse.Close();
93 92
94 TransferInfoPacket Transfer = new TransferInfoPacket(); 93 TransferInfoPacket Transfer = new TransferInfoPacket();
95 Transfer.TransferInfo.ChannelType = 2; 94 Transfer.TransferInfo.ChannelType = 2;
@@ -127,6 +126,7 @@ namespace OpenSim
127 TransferPacket.TransferData.Data = idata; 126 TransferPacket.TransferData.Data = idata;
128 OutPacket(TransferPacket); 127 OutPacket(TransferPacket);
129 } 128 }
129 AssetResponse.Close();
130 } 130 }
131 131
132 public void ProcessInPacket(Packet Pack) { 132 public void ProcessInPacket(Packet Pack) {
@@ -134,10 +134,10 @@ namespace OpenSim
134 switch(Pack.Type) { 134 switch(Pack.Type) {
135 case PacketType.CompleteAgentMovement: 135 case PacketType.CompleteAgentMovement:
136 ClientAvatar.CompleteMovement(OpenSim_Main.local_world); 136 ClientAvatar.CompleteMovement(OpenSim_Main.local_world);
137 ClientAvatar.SendInitialPosition();
137 break; 138 break;
138 case PacketType.RegionHandshakeReply: 139 case PacketType.RegionHandshakeReply:
139 OpenSim_Main.local_world.SendLayerData(this); 140 OpenSim_Main.local_world.SendLayerData(this);
140 ClientAvatar.SendInitialPosition();
141 break; 141 break;
142 case PacketType.AgentWearablesRequest: 142 case PacketType.AgentWearablesRequest:
143 ClientAvatar.SendInitialAppearance(); 143 ClientAvatar.SendInitialAppearance();