Move PingTimer instantiation
This commit is contained in:
parent
6aa43295c5
commit
da7c17b505
|
@ -99,7 +99,6 @@ namespace ChatSharp
|
|||
Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
|
||||
ReadBuffer = new byte[ReadBufferLength];
|
||||
ReadBufferIndex = 0;
|
||||
Socket.BeginConnect(ServerHostname, ServerPort, ConnectComplete, null);
|
||||
PingTimer = new Timer(30000);
|
||||
PingTimer.Elapsed += (sender, e) =>
|
||||
{
|
||||
|
@ -116,7 +115,8 @@ namespace ChatSharp
|
|||
SendRawMessage(nextMessage);
|
||||
}
|
||||
};
|
||||
checkQueue.Start();
|
||||
checkQueue.Start();
|
||||
Socket.BeginConnect(ServerHostname, ServerPort, ConnectComplete, null);
|
||||
}
|
||||
|
||||
public void Quit()
|
||||
|
|
Loading…
Reference in New Issue