Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/TwitchStreamingTools/Services/TwitchTtsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,14 @@ private void OnKeystroke(Keybind keybind) {
keybind.IsAlt == skip.IsAlt &&
keybind.IsCtrl == skip.IsCtrl &&
keybind.IsShift == skip.IsShift) {
foreach (TwitchChatTts chat in _chats) {
chat.SkipCurrentTts();
var chats = _chats.ToList();
foreach (TwitchChatTts chat in chats) {
try {
chat.SkipCurrentTts();
}
catch {
// Do nothing, just try to skip the best we can.
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,8 @@ private async void UserListRefreshTimer_OnElapsed(object sender, ElapsedEventArg
_userListRefreshTimer.Interval = 5000;
_userListRefreshTimer.Start();
}
catch (Exception ex) {
catch {
// do nothing don't crash
LOG.Error("Failed to refresh user list", ex);
}
}
}