Skip to content
Snippets Groups Projects
Commit af89d99a authored by capossele's avatar capossele
Browse files

:bug: fix SIGSEGV when drng plugin is disabled

parent 537649c7
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,9 @@ func runDrngLiveFeed() {
})
daemon.BackgroundWorker("Dashboard[DRNGUpdater]", func(shutdownSignal <-chan struct{}) {
if drng.Instance == nil {
return
}
drng.Instance.Events.Randomness.Attach(notifyNewRandomness)
drngLiveFeedWorkerPool.Start()
<-shutdownSignal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment