Added Rainbet bet history scraping. Uses FlareSolverr to grab Cloudflare cookies then retrieves from the bet feed. Not perfect but mostly works.

This commit is contained in:
barelyprofessional
2024-08-06 00:07:08 +08:00
parent 508df3163b
commit a67641a14d
12 changed files with 575 additions and 7 deletions
+10 -1
View File
@@ -207,7 +207,16 @@ public class Shuffle : IDisposable
public void Dispose()
{
_wsClient.Dispose();
_pingCts.Cancel();
// Rare bug but has happened at least once
try
{
_pingCts.Cancel();
}
catch (ObjectDisposedException e)
{
_logger.Error("Caught object disposed exception when trying to send a cancellation to the ping task");
_logger.Error(e);
}
_pingCts.Dispose();
_pingTask.Dispose();
GC.SuppressFinalize(this);