From aa699f02a039240e3e11fc30174aeaa6933a7b66 Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 4 May 2017 19:46:13 -0400 Subject: [PATCH] Fix reversed check --- pubsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubsub.go b/pubsub.go index 60903c0..87c5933 100644 --- a/pubsub.go +++ b/pubsub.go @@ -165,7 +165,7 @@ func (t *TwitchPubSub) reconnect() error { func (t *TwitchPubSub) Listen(topics []string) error { err := t.listen(topics) - if err != nil { + if err == nil { // Update topic list t.SubscribedTopics = append(t.SubscribedTopics, topics...) }