|
|
@ -1070,12 +1070,13 @@ void CConnman::ThreadSocketHandler() |
|
|
|
{ |
|
|
|
{ |
|
|
|
bool fDelete = false; |
|
|
|
bool fDelete = false; |
|
|
|
{ |
|
|
|
{ |
|
|
|
TRY_LOCK(pnode->cs_vSend, lockSend); |
|
|
|
TRY_LOCK(pnode->cs_inventory, lockInv); |
|
|
|
if (lockSend) |
|
|
|
if (lockInv) |
|
|
|
{ |
|
|
|
{ |
|
|
|
TRY_LOCK(pnode->cs_inventory, lockInv); |
|
|
|
TRY_LOCK(pnode->cs_vSend, lockSend); |
|
|
|
if (lockInv) |
|
|
|
if (lockSend) { |
|
|
|
fDelete = true; |
|
|
|
fDelete = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (fDelete) |
|
|
|
if (fDelete) |
|
|
|