From 41dbd6da3957cbcf5ec13f160fc45a684ad6b80c Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Fri, 19 Nov 2021 15:10:22 -0800 Subject: [PATCH] Fixing locking in ACN event bus interface --- app/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app.go b/app/app.go index 31c2159..6b78f0e 100644 --- a/app/app.go +++ b/app/app.go @@ -228,12 +228,12 @@ func (ac *applicationCore) GetEventBus(onion string) event.Manager { func (app *application) getACNStatusHandler() func(int, string) { return func(progress int, status string) { progStr := strconv.Itoa(progress) - app.peerLock.Lock() + app.appmutex.Lock() app.appBus.Publish(event.NewEventList(event.ACNStatus, event.Progress, progStr, event.Status, status)) for _, bus := range app.eventBuses { bus.Publish(event.NewEventList(event.ACNStatus, event.Progress, progStr, event.Status, status)) } - app.peerLock.Unlock() + app.appmutex.Unlock() } }