#1 fix concurrent connection write

This commit is contained in:
8lecramm 2022-08-19 23:55:35 +02:00 committed by GitHub
parent b70dd78483
commit 3ba55712a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,7 +214,7 @@ func newUpgrader() *websocket.Upgrader {
// Update miners information // Update miners information
return return
} else { } else {
go SendToDaemon(data) SendToDaemon(data)
if !config.Pool_mode { if !config.Pool_mode {
fmt.Printf("%v Submitting result from miner: %v, Wallet: %v\n", time.Now().Format(time.Stamp), c.RemoteAddr().String(), client_list[c].address.String()) fmt.Printf("%v Submitting result from miner: %v, Wallet: %v\n", time.Now().Format(time.Stamp), c.RemoteAddr().String(), client_list[c].address.String())
} else { } else {