Skip to content

Commit

Permalink
onReady() when waiting for commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Apr 1, 2022
1 parent 63ca692 commit 84b0174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/cliche/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,6 @@ object Main {
override def onWalletReady(
blockCountEvent: ElectrumWallet.WalletReady
): Unit = {
Commands.onReady()

LNParams.synchronized {
val sameXPub: ElectrumEclairWallet => Boolean =
_.ewt.xPub == blockCountEvent.xPub
Expand Down Expand Up @@ -489,6 +487,8 @@ object Main {

def main(args: Array[String]): Unit = {
println("# waiting for commands")
Commands.onReady()

while (true) {
val line = scala.io.StdIn.readLine().trim
if (line.size > 0) {
Expand Down

0 comments on commit 84b0174

Please sign in to comment.