mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-23 17:55:43 -05:00
Fix invalid channel selections leading to event sub disconnect
Repeated invalid POSTs to /helix/eventsub/subscriptions will lead to a disconnect of the event sub websocket connection. Thus one single invalid channel selection could tear down any existing subscriptions with it.
This commit is contained in:
@@ -197,7 +197,7 @@ void TwitchChannel::ResolveVariables()
|
||||
_name.ResolveVariables();
|
||||
}
|
||||
|
||||
bool TwitchChannel::IsValid(const std::string &id) const
|
||||
bool TwitchChannel::IsValid(const std::string &id)
|
||||
{
|
||||
return id != "invalid" && !id.empty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user