void ThreadFunc()
{
while (true)
{
try
{
if (mURL != null && mPort != 0 && mUser != null && mPass != null)
{
BitnetClient bc = new BitnetClient("http://" + mURL + ":" + mPort);
bc.Credentials = new NetworkCredential(mUser, mPass);
int blockCount = bc.GetBlockCount();
if (blockCount > mBlockCount)
{
mBlockCount = blockCount;
mNewBlockReady = true;
}
}
}
catch (Exception)
{
}
Thread.Sleep(1000 * 10);
}
}