Don't use a stinky Timer for user bumps and exclude AFK.

This commit is contained in:
flash 2023-02-08 01:01:55 +01:00
commit 27c28aafcd
6 changed files with 77 additions and 66 deletions
SharpChat

View file

@ -32,7 +32,9 @@ namespace SharpChat {
if(hasCancelled) return;
using HttpClient httpClient = new();
using HttpClient httpClient = new(new HttpClientHandler() {
UseProxy = false, // we will never and the initial resolving takes forever on linux
});
httpClient.DefaultRequestHeaders.Add(@"User-Agent", @"SharpChat/20230206");
if(hasCancelled) return;