Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit ab8031d

Browse files
hlxidJ0B10
authored andcommitted
Clear joined channels of TwitchChatConnector on stop
If the channels aren't cleared and the connector is restarted multiple times it won't join into any channels that the connector has joined before the restart because it still thinks it has joined them already
1 parent caf186b commit ab8031d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/scala/org/codeoverflow/chatoverflow/requirement/service/twitch/chat/TwitchChatConnector.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class TwitchChatConnector(override val sourceIdentifier: String) extends Connect
124124
bot.sendIRC().quitServer()
125125
bot.close()
126126
status = None
127+
channels.clear()
127128
true
128129
}
129130
}

0 commit comments

Comments
 (0)