Minor changes
This commit is contained in:
parent
91e386bb67
commit
ff84198e32
4 changed files with 8 additions and 6 deletions
|
|
@ -29,16 +29,16 @@ namespace TShockAPI
|
|||
public DateTime lastcheck = DateTime.MinValue;
|
||||
private readonly int checkinFrequency = 5;
|
||||
|
||||
public void checkin()
|
||||
public void CheckIn()
|
||||
{
|
||||
if ((DateTime.Now - lastcheck).TotalMinutes >= checkinFrequency)
|
||||
{
|
||||
ThreadPool.QueueUserWorkItem(callHome);
|
||||
ThreadPool.QueueUserWorkItem(CallHome);
|
||||
lastcheck = DateTime.Now;
|
||||
}
|
||||
}
|
||||
|
||||
private void callHome(object state)
|
||||
private void CallHome(object state)
|
||||
{
|
||||
string fp;
|
||||
string lolpath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/.tshock/";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue