mirror of
https://github.com/8lecramm/derohe-proxy.git
synced 2025-01-10 13:57:56 +00:00
Add client_list_mutex
This commit is contained in:
parent
b586355300
commit
5fecc3b924
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user