diff options
author | Teravus Ovares | 2007-12-18 01:38:06 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-12-18 01:38:06 +0000 |
commit | 425a7656ed7c2428d09643e7bff9613f29784015 (patch) | |
tree | 1e3a9860fb0dd9ec7f66de8aa3668fc2f3483371 /OpenSim/Region/ClientStack | |
parent | * Fix for mantis 0000040 After client logout remote host closed connection on... (diff) | |
download | opensim-SC-425a7656ed7c2428d09643e7bff9613f29784015.zip opensim-SC-425a7656ed7c2428d09643e7bff9613f29784015.tar.gz opensim-SC-425a7656ed7c2428d09643e7bff9613f29784015.tar.bz2 opensim-SC-425a7656ed7c2428d09643e7bff9613f29784015.tar.xz |
* Removed the ObjectDisposed error.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/UDPServer.cs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/UDPServer.cs b/OpenSim/Region/ClientStack/UDPServer.cs index 2b2269e..64381b4 100644 --- a/OpenSim/Region/ClientStack/UDPServer.cs +++ b/OpenSim/Region/ClientStack/UDPServer.cs | |||
@@ -146,6 +146,14 @@ namespace OpenSim.Region.ClientStack | |||
146 | } | 146 | } |
147 | break; | 147 | break; |
148 | default: | 148 | default: |
149 | try | ||
150 | { | ||
151 | CloseEndPoint(epSender); | ||
152 | } | ||
153 | catch (System.Exception) | ||
154 | { | ||
155 | //MainLog.Instance.Verbose("UDPSERVER", a.ToString()); | ||
156 | } | ||
149 | // Here's some reference code! :D | 157 | // Here's some reference code! :D |
150 | // Shutdown and restart the UDP listener! hehe | 158 | // Shutdown and restart the UDP listener! hehe |
151 | // Shiny | 159 | // Shiny |
@@ -158,9 +166,9 @@ namespace OpenSim.Region.ClientStack | |||
158 | 166 | ||
159 | return; | 167 | return; |
160 | } | 168 | } |
161 | catch (System.ObjectDisposedException e) | 169 | catch (System.ObjectDisposedException) |
162 | { | 170 | { |
163 | MainLog.Instance.Debug("UDPSERVER", e.ToString()); | 171 | //MainLog.Instance.Debug("UDPSERVER", e.ToString()); |
164 | return; | 172 | return; |
165 | } | 173 | } |
166 | 174 | ||
@@ -170,9 +178,9 @@ namespace OpenSim.Region.ClientStack | |||
170 | { | 178 | { |
171 | packet = Packet.BuildPacket(RecvBuffer, ref packetEnd, ZeroBuffer); | 179 | packet = Packet.BuildPacket(RecvBuffer, ref packetEnd, ZeroBuffer); |
172 | } | 180 | } |
173 | catch(Exception e) | 181 | catch(Exception) |
174 | { | 182 | { |
175 | MainLog.Instance.Debug("UDPSERVER", e.ToString()); | 183 | //MainLog.Instance.Debug("UDPSERVER", e.ToString()); |
176 | } | 184 | } |
177 | 185 | ||
178 | // do we already have a circuit for this endpoint | 186 | // do we already have a circuit for this endpoint |