Skip to content
Commit 154a9524 authored by Igor Kushnir's avatar Igor Kushnir Committed by Milian Wolff
Browse files

Don't call ItemRepository::close() twice in a row

ItemRepositoryRegistry::unRegisterRepository() is called only from
within ~ItemRepository(). ~ItemRepository() unconditionally calls
close() right after unRegisterRepository(). There is no need to lock the
repository's mutex in its destructor. So removing the duplicate close()
call along with the repository's mutex lock from unRegisterRepository()
must be safe.
parent 8d6f7237
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment