浏览代码

Update ShellStream.cs

Fix every 1025th byte being skipped
JasonQG 8 年之前
父节点
当前提交
733ec56e6e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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))
             foreach (var b in buffer.Take(offset, count))
             {
             {
+                _outgoing.Enqueue(b);
                 if (_outgoing.Count < BufferSize)
                 if (_outgoing.Count < BufferSize)
                 {
                 {
-                    _outgoing.Enqueue(b);
                     continue;
                     continue;
                 }
                 }