posix: Fix assertion when freeing ProcessSingleton
This commit is contained in:
parent
1072c75e38
commit
1ff872519c
1 changed files with 4 additions and 0 deletions
|
@ -735,6 +735,10 @@ ProcessSingleton::ProcessSingleton(
|
||||||
|
|
||||||
ProcessSingleton::~ProcessSingleton() {
|
ProcessSingleton::~ProcessSingleton() {
|
||||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||||
|
// Manually free resources with IO explicitly allowed.
|
||||||
|
base::ThreadRestrictions::ScopedAllowIO allow_io;
|
||||||
|
watcher_ = nullptr;
|
||||||
|
ignore_result(socket_dir_.Delete());
|
||||||
}
|
}
|
||||||
|
|
||||||
ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() {
|
ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue