Skip to content

Commit 985e3f3

Browse files
authored
Merge pull request #211 from JasonQG/patch-1
Fix bytes sent being skipped
2 parents e9eaf65 + 733ec56 commit 985e3f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renci.SshNet/ShellStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ public override void Write(byte[] buffer, int offset, int count)
226226
{
227227
foreach (var b in buffer.Take(offset, count))
228228
{
229+
_outgoing.Enqueue(b);
229230
if (_outgoing.Count < BufferSize)
230231
{
231-
_outgoing.Enqueue(b);
232232
continue;
233233
}
234234

0 commit comments

Comments
 (0)