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

Commit

Permalink
Fix: Connector doesn't set running after strating
Browse files Browse the repository at this point in the history
  • Loading branch information
J0B10 committed May 17, 2019
1 parent 4e40b6d commit e05ada0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ abstract class Connector(val sourceIdentifier: String) extends WithLogger {

if (start()) {
logger info s"Started $connectorSourceAndType."
running = true
true
} else {
logger warn s"Failed starting $connectorSourceAndType."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ class DiscordChatConnector(override val sourceIdentifier: String) extends Connec
jda.get.addEventListener(discordChatListener)
logger info "Waiting while the bot is connecting..."
jda.get.awaitReady()
running = true
logger info "Started connector."
true
} catch {
case _: LoginException =>
Expand Down

0 comments on commit e05ada0

Please sign in to comment.