mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
posix: Fix assertion when freeing ProcessSingleton
This commit is contained in:
@@ -735,6 +735,10 @@ ProcessSingleton::ProcessSingleton(
|
||||
|
||||
ProcessSingleton::~ProcessSingleton() {
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user