Explorar o código

Update ShellStream.cs

Fix every 1025th byte being skipped
JasonQG %!s(int64=8) %!d(string=hai) anos
pai
achega
733ec56e6e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Renci.SshNet/ShellStream.cs

+ 1 - 1
src/Renci.SshNet/ShellStream.cs

@@ -226,9 +226,9 @@ namespace Renci.SshNet
         {
             foreach (var b in buffer.Take(offset, count))
             {
+                _outgoing.Enqueue(b);
                 if (_outgoing.Count < BufferSize)
                 {
-                    _outgoing.Enqueue(b);
                     continue;
                 }