tweak locking

This commit is contained in:
cryptonote-social 2020-08-15 16:25:09 -07:00
parent a0df6f931c
commit fbdcb961e0

View File

@ -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
}