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

Commit e05ada0

Browse files
committed
Fix: Connector doesn't set running after strating
1 parent 4e40b6d commit e05ada0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/main/scala/org/codeoverflow/chatoverflow/connector/Connector.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ abstract class Connector(val sourceIdentifier: String) extends WithLogger {
9696

9797
if (start()) {
9898
logger info s"Started $connectorSourceAndType."
99+
running = true
99100
true
100101
} else {
101102
logger warn s"Failed starting $connectorSourceAndType."

src/main/scala/org/codeoverflow/chatoverflow/requirement/service/discord/DiscordChatConnector.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ class DiscordChatConnector(override val sourceIdentifier: String) extends Connec
4646
jda.get.addEventListener(discordChatListener)
4747
logger info "Waiting while the bot is connecting..."
4848
jda.get.awaitReady()
49-
running = true
50-
logger info "Started connector."
5149
true
5250
} catch {
5351
case _: LoginException =>

0 commit comments

Comments
 (0)