diff options
author | lbsa71 | 2008-09-08 14:30:35 +0000 |
---|---|---|
committer | lbsa71 | 2008-09-08 14:30:35 +0000 |
commit | 8388fe0669f9d140028d1925284491b21a09a1bf (patch) | |
tree | 80c7729bef9b88a371c3f561322a97faf262ade6 /ThirdParty/3Di/LoadBalancer | |
parent | Mantis #2144 (diff) | |
download | opensim-SC-8388fe0669f9d140028d1925284491b21a09a1bf.zip opensim-SC-8388fe0669f9d140028d1925284491b21a09a1bf.tar.gz opensim-SC-8388fe0669f9d140028d1925284491b21a09a1bf.tar.bz2 opensim-SC-8388fe0669f9d140028d1925284491b21a09a1bf.tar.xz |
* some if inversions and added {}'s for readability
Diffstat (limited to '')
-rw-r--r-- | ThirdParty/3Di/LoadBalancer/TcpServer.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ThirdParty/3Di/LoadBalancer/TcpServer.cs b/ThirdParty/3Di/LoadBalancer/TcpServer.cs index fd5e9e2..376c0a5 100644 --- a/ThirdParty/3Di/LoadBalancer/TcpServer.cs +++ b/ThirdParty/3Di/LoadBalancer/TcpServer.cs | |||
@@ -159,14 +159,14 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer | |||
159 | 159 | ||
160 | state.ms_ptr.Seek(0, SeekOrigin.End); | 160 | state.ms_ptr.Seek(0, SeekOrigin.End); |
161 | // call loadbarancer function | 161 | // call loadbarancer function |
162 | if (PacketHandler != null) | 162 | if (PacketHandler == null) |
163 | { | 163 | { |
164 | //MainLog.Instance.Verbose("TCPSERVER", "calling PacketHandler"); | 164 | //MainLog.Instance.Verbose("TCPSERVER", "PacketHandler not found"); |
165 | PacketHandler(state.header, packet); | ||
166 | } | 165 | } |
167 | else | 166 | else |
168 | { | 167 | { |
169 | //MainLog.Instance.Verbose("TCPSERVER", "PacketHandler not found"); | 168 | //MainLog.Instance.Verbose("TCPSERVER", "calling PacketHandler"); |
169 | PacketHandler(state.header, packet); | ||
170 | } | 170 | } |
171 | 171 | ||
172 | int read_size = state.header.numbytes + TcpClient.internalPacketHeaderSize; | 172 | int read_size = state.header.numbytes + TcpClient.internalPacketHeaderSize; |