Correctly initialize subscribed topics list

This commit is contained in:
Tyler 2017-05-04 01:49:19 -04:00
parent 06f1d59b3f
commit baf46716bd
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ type TwitchPubSub struct {
func NewTwitchPubSub() *TwitchPubSub { func NewTwitchPubSub() *TwitchPubSub {
t := &TwitchPubSub{ t := &TwitchPubSub{
responseCh: make(chan *twitchMessage), responseCh: make(chan *twitchMessage),
SubscribedTopics: make([]string, 0),
} }
return t return t