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

Commit

Permalink
fix(logs): logsender client additions are not synchronous (#1132)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsaky committed Aug 5, 2023
1 parent 8414f98 commit 667b3d8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ class MultiLogSenderHandler(consumer: ((LogLine) -> Unit)? = null) :

log.info("A log sender has been connected")

clients.add(handler)
lock.withLock {
clients.add(handler)
}

handler.start()
}
}
Expand Down

0 comments on commit 667b3d8

Please sign in to comment.