about summary refs log tree commit diff
path: root/Examples/States/Client.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/States/Client.cs')
-rw-r--r--Examples/States/Client.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Examples/States/Client.cs b/Examples/States/Client.cs
index e98457d..0cd7722 100644
--- a/Examples/States/Client.cs
+++ b/Examples/States/Client.cs
@@ -45,9 +45,8 @@ namespace StatesSample
             {
                 while (_encoder.PendingBytes.Any())
                 {
-                    var bytesSent = _socket.Send(_encoder.PendingBytes);
-                    var sentLines = _encoder.Pop(bytesSent);
-                    foreach (var line in sentLines) Console.WriteLine($"> {line.Format()}");
+                    foreach (var line in _encoder.Pop(_socket.Send(_encoder.PendingBytes)))
+                        Console.WriteLine($"> {line.Format()}");
                 }
 
                 var bytesReceived = _socket.Receive(_bytes);