Browse Source

Merge pull request #211 from JasonQG/patch-1

Fix bytes sent being skipped
Gert Driesen 8 years ago
parent
commit
985e3f3703
1 changed files with 1 additions and 1 deletions
  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;
                 }