Allocate mutex on stack, spotted by davec.
This commit is contained in:
parent
e081508c9d
commit
1d6741eb05
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue