Allocate mutex on stack, spotted by davec.

This commit is contained in:
Josh Rickmar 2013-10-06 11:04:01 -04:00
parent e081508c9d
commit 1d6741eb05

View file

@ -82,7 +82,7 @@ func frontendListenerDuplicator() {
// Don't want to add or delete a wallet listener while iterating
// through each to propigate to every attached wallet. Use a mutex to
// prevent this.
mtx := new(sync.Mutex)
var mtx sync.Mutex
// Check for listener channels to add or remove from set.
go func() {