Fixed Twitch subscriptions. Fixed typos. Fixed Twitch websocket reconnection.

This commit is contained in:
Tom
2024-08-06 21:15:05 +00:00
parent eb8bfdf6b0
commit 8a0e55bb95
11 changed files with 24 additions and 20 deletions

View File

@@ -71,7 +71,7 @@ namespace TwitchChatTTS.Twitch.Socket
{
if (_identified == client)
{
_logger.Error("Twitch client has been re-identified.");
_logger.Warning("Twitch client has been re-identified.");
return;
}
if (_backup != client)
@@ -83,6 +83,7 @@ namespace TwitchChatTTS.Twitch.Socket
if (_identified != null)
{
_logger.Debug("Second Twitch client has been identified; hopefully a reconnection.");
return;
}
@@ -101,10 +102,12 @@ namespace TwitchChatTTS.Twitch.Socket
{
if (_identified == client)
{
_logger.Debug("Identified Twitch client has disconnected.");
_identified = null;
}
else if (_backup == client)
{
_logger.Debug("Backup Twitch client has disconnected.");
_backup = null;
}
else