Fix reversed check
This commit is contained in:
parent
baf46716bd
commit
aa699f02a0
|
@ -165,7 +165,7 @@ func (t *TwitchPubSub) reconnect() error {
|
||||||
func (t *TwitchPubSub) Listen(topics []string) error {
|
func (t *TwitchPubSub) Listen(topics []string) error {
|
||||||
err := t.listen(topics)
|
err := t.listen(topics)
|
||||||
|
|
||||||
if err != nil {
|
if err == nil {
|
||||||
// Update topic list
|
// Update topic list
|
||||||
t.SubscribedTopics = append(t.SubscribedTopics, topics...)
|
t.SubscribedTopics = append(t.SubscribedTopics, topics...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue