Browse Source

Update ShellStream.cs

Fix every 1025th byte being skipped
JasonQG 8 năm trước cách đây
mục cha
commit
733ec56e6e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
                 }