Add client_list_mutex

This commit is contained in:
8lecramm 2022-05-28 13:11:49 +02:00 committed by GitHub
parent b586355300
commit 5fecc3b924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,6 +100,9 @@ func CountMiners() int {
func SendTemplateToNodes(input []byte) { func SendTemplateToNodes(input []byte) {
var data []byte var data []byte
client_list_mutex.Lock()
defer client_list_mutex.Unlock()
for rk, rv := range client_list { for rk, rv := range client_list {
if client_list == nil { if client_list == nil {