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
529529 // ! Mark an entry as accessible.
530530 void Good (const CService &addr, int64_t nTime = GetAdjustedTime())
531531 {
532- {
533- LOCK (cs);
534- Check ();
535- Good_ (addr, nTime);
536- Check ();
537- }
532+ LOCK (cs);
533+ Check ();
534+ Good_ (addr, nTime);
535+ Check ();
538536 }
539537
540538 // ! Mark an entry as connection attempted to.
541539 void Attempt (const CService &addr, bool fCountFailure , int64_t nTime = GetAdjustedTime())
542540 {
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 ();
549545 }
550546
551547 /* *
@@ -579,12 +575,10 @@ class CAddrMan
579575 // ! Mark an entry as currently-connected-to.
580576 void Connected (const CService &addr, int64_t nTime = GetAdjustedTime())
581577 {
582- {
583- LOCK (cs);
584- Check ();
585- Connected_ (addr, nTime);
586- Check ();
587- }
578+ LOCK (cs);
579+ Check ();
580+ Connected_ (addr, nTime);
581+ Check ();
588582 }
589583
590584 void SetServices (const CService &addr, ServiceFlags nServices)
You can’t perform that action at this time.
0 commit comments