File tree Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -529,23 +529,19 @@ class CAddrMan
529
529
// ! Mark an entry as accessible.
530
530
void Good (const CService &addr, int64_t nTime = GetAdjustedTime())
531
531
{
532
- {
533
- LOCK (cs);
534
- Check ();
535
- Good_ (addr, nTime);
536
- Check ();
537
- }
532
+ LOCK (cs);
533
+ Check ();
534
+ Good_ (addr, nTime);
535
+ Check ();
538
536
}
539
537
540
538
// ! Mark an entry as connection attempted to.
541
539
void Attempt (const CService &addr, bool fCountFailure , int64_t nTime = GetAdjustedTime())
542
540
{
543
- {
544
- LOCK (cs);
545
- Check ();
546
- Attempt_ (addr, fCountFailure , nTime);
547
- Check ();
548
- }
541
+ LOCK (cs);
542
+ Check ();
543
+ Attempt_ (addr, fCountFailure , nTime);
544
+ Check ();
549
545
}
550
546
551
547
/* *
@@ -579,12 +575,10 @@ class CAddrMan
579
575
// ! Mark an entry as currently-connected-to.
580
576
void Connected (const CService &addr, int64_t nTime = GetAdjustedTime())
581
577
{
582
- {
583
- LOCK (cs);
584
- Check ();
585
- Connected_ (addr, nTime);
586
- Check ();
587
- }
578
+ LOCK (cs);
579
+ Check ();
580
+ Connected_ (addr, nTime);
581
+ Check ();
588
582
}
589
583
590
584
void SetServices (const CService &addr, ServiceFlags nServices)
You can’t perform that action at this time.
0 commit comments