Skip to content

Commit

Permalink
Fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
PintTheDragon committed Nov 5, 2020
1 parent f1306df commit 21f7c0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SCPStats/EventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ internal static void Start()

private static async Task UpdateID()
{
await Task.Delay(20000);

using (var requestMessage = new HttpRequestMessage(HttpMethod.Post, "https://scpstats.com/getid"))
{
var str = "{\"ip\": \"" + ServerConsole.Ip + "\",\"port\": \"" + ServerConsole.Port + "\",\"id\": \"" + SCPStats.Singleton.Config.ServerId + "\"}";
Expand All @@ -63,6 +65,7 @@ private static async Task UpdateID()
if (body != "E")
{
SCPStats.Singleton.ID = body;
ServerConsole.ReloadServerName();
Verify();
}
}
Expand Down

0 comments on commit 21f7c0f

Please sign in to comment.