Permalink
Browse files

Removed networkStream variable.

  • Loading branch information...
1 parent 087c6d8 commit 72d6831e27e5e7a70a43e53cd66d4e1d3754af6d @theanti9 committed Jan 29, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 libhakyn/Connection/GameConnection.cs
@@ -15,7 +15,6 @@ public class GameConnection
private int port;
private string token;
private TcpClient client;
- private NetworkStream networkStream;
private static Thread writeRunnerThread;
private static Thread readRunnerThread;
private List<byte> outputQueue;
@@ -93,7 +92,7 @@ private void handleIncoming()
try
{
byte[] buffer = new byte[BUFF_SIZE];
- int bytesRead = networkStream.Read(buffer, 0, BUFF_SIZE);
+ int bytesRead = client.GetStream().Read(buffer, 0, BUFF_SIZE);
if (bytesRead > 0)
{
Command.CommandProcessor.Queue.AddRange(buffer);

0 comments on commit 72d6831

Please sign in to comment.