HomeSource World

core: add check in AddChildIndexer to avoid double lock (#20982)

Authored by Boqin Qin <Bobbqqin@gmail.com> on Apr 27 2020, 1:16 PM.

Description

core: add check in AddChildIndexer to avoid double lock (#20982)

This fixes a theoretical double lock condition which could occur in

    indexer.AddChildIndexer(indexer)

Nobody would ever do that though.

Co-authored-by: Felix Lange <fjl@twurst.com>

Details

Event Timeline

GitHub <noreply@github.com> committed rGETHba068d40dd9a: core: add check in AddChildIndexer to avoid double lock (#20982) (authored by Boqin Qin <Bobbqqin@gmail.com>).Apr 27 2020, 1:16 PM