mirror of
https://github.com/monero-project/monero.git
synced 2025-05-04 16:54:57 -04:00
address PR comments
This commit is contained in:
parent
3be1dbd096
commit
a82fba4b7b
4 changed files with 390 additions and 395 deletions
|
@ -617,7 +617,7 @@ TEST(boosted_tcp_server, strand_deadlock)
|
|||
void after_init_connection()
|
||||
{
|
||||
unique_lock_t guard(lock);
|
||||
if (not context.m_is_income) {
|
||||
if (!context.m_is_income) {
|
||||
guard.unlock();
|
||||
socket->do_send(byte_slice_t{"."});
|
||||
}
|
||||
|
@ -628,7 +628,7 @@ TEST(boosted_tcp_server, strand_deadlock)
|
|||
bool handle_recv(const char *data, size_t bytes_transferred)
|
||||
{
|
||||
unique_lock_t guard(lock);
|
||||
if (not context.m_is_income) {
|
||||
if (!context.m_is_income) {
|
||||
if (context.m_recv_cnt == 1024) {
|
||||
guard.unlock();
|
||||
socket->do_send(byte_slice_t{"."});
|
||||
|
@ -652,9 +652,9 @@ TEST(boosted_tcp_server, strand_deadlock)
|
|||
void release_protocol()
|
||||
{
|
||||
unique_lock_t guard(lock);
|
||||
if(not context.m_is_income
|
||||
and context.m_recv_cnt == 1024
|
||||
and context.m_send_cnt == 2
|
||||
if(!context.m_is_income
|
||||
&& context.m_recv_cnt == 1024
|
||||
&& context.m_send_cnt == 2
|
||||
) {
|
||||
guard.unlock();
|
||||
config.notify_success();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue