Fixed reconnection causing unhandled exceptions

This commit is contained in:
Tom
2024-08-12 20:10:11 +00:00
parent 1d43515fb9
commit a38e08c14d
4 changed files with 7 additions and 7 deletions

View File

@@ -111,7 +111,7 @@ namespace TwitchChatTTS.Twitch.Socket
};
}
public async Task Connect()
public override async Task Connect()
{
if (string.IsNullOrWhiteSpace(URL))
{
@@ -123,7 +123,7 @@ namespace TwitchChatTTS.Twitch.Socket
await ConnectAsync(URL);
}
public async Task Reconnect() => await Reconnect(_backoff, async () => await Connect());
public async Task Reconnect() => await Reconnect(_backoff);
public void Identify(string sessionId)
{