mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-14 18:12:43 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user