mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-09-19 10:02:55 +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
@ -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 New Issue
Block a user