mirror of
https://github.com/cryptonote-social/csminer.git
synced 2024-09-11 05:35:23 +03:00
tweak locking
This commit is contained in:
parent
a0df6f931c
commit
fbdcb961e0
@ -372,7 +372,7 @@ func handlePoke(wasMining bool, poke int, stopper *uint32, wg *sync.WaitGroup) i
|
||||
configMutex.Lock()
|
||||
t := rx.AddThread()
|
||||
if t < 0 {
|
||||
configMutex.UnLock()
|
||||
configMutex.Unlock()
|
||||
crylog.Error("Failed to add another thread")
|
||||
return USE_CACHED
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user