Browse Source

tiny fix

tags/3.0
Gang Zhuo 9 years ago
parent
commit
b918cb85ae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      shadowsocks-csharp/Controller/Service/TCPRelay.cs

+ 1
- 1
shadowsocks-csharp/Controller/Service/TCPRelay.cs View File

@@ -587,7 +587,6 @@ namespace Shadowsocks.Controller
{
int bytesRead = connection.EndReceive(ar);
totalWrite += bytesRead;
tcprelay.UpdateOutboundCounter(bytesRead);
if (bytesRead > 0)
{
@@ -601,6 +600,7 @@ namespace Shadowsocks.Controller
encryptor.Encrypt(connetionRecvBuffer, bytesRead, connetionSendBuffer, out bytesToSend);
}
Logging.Debug(remote, bytesToSend, "TCP Relay", "@PipeConnectionReceiveCallback() (upload)");
tcprelay.UpdateOutboundCounter(bytesToSend);
remote.BeginSend(connetionSendBuffer, 0, bytesToSend, 0, new AsyncCallback(PipeRemoteSendCallback), null);
IStrategy strategy = controller.GetCurrentStrategy();


Loading…
Cancel
Save