internal void serverUpdateTimer_Tick(object sender, EventArgs e)
{
if (updateProcessStarted)
{
if (haveInitialPeers)
{
updateCounters(currentTorrent);
}
int num1 = currentTorrent.interval - temporaryIntervalCounter;
totalRunningTimeCounter++;
lblTotalTime.Text = ConvertToTime(totalRunningTimeCounter);
StopModule();
if (num1 > 0)
{
temporaryIntervalCounter++;
timerValue.Text = ConvertToTime(num1);
}
else
{
randomiseSpeeds();
OpenTcpListener();
Thread thread1 = new Thread(continueProcess);
temporaryIntervalCounter = 0;
timerValue.Text = "0";
thread1.Name = "continueProcess() Thread";
thread1.Start();
}
}
}