mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-30 00:21:16 +00:00
[core] Fix: Ignore EventSub subscriptions of other bot instances
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
437ef14fb0
commit
0afafa535d
1 changed files with 5 additions and 0 deletions
|
@ -300,6 +300,11 @@ func (e *EventSubClient) PreFetchSubscriptions(ctx context.Context) error {
|
|||
logger.WithError(err).Error("Unable to deregister deprecated EventSub subscription")
|
||||
}
|
||||
continue
|
||||
|
||||
case sub.Transport.Callback != e.fullAPIurl():
|
||||
// Different callback URL: We don't care, it's probably another
|
||||
// bot instance with the same client ID
|
||||
continue
|
||||
}
|
||||
|
||||
condHash, err := sub.Condition.Hash()
|
||||
|
|
Loading…
Reference in a new issue