fix: utilityProcess pid should be undefined after exit (#44695)

fix: utilityProcess pid should be undefined after exit

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot] 2024-11-18 14:44:14 +01:00 committed by GitHub
parent 9bd442fb62
commit 5fc13009cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 1 deletions

View file

@ -255,6 +255,8 @@ void UtilityProcessWrapper::HandleTermination(uint64_t exit_code) {
if (pid_ != base::kNullProcessId)
GetAllUtilityProcessWrappers().Remove(pid_);
pid_ = base::kNullProcessId;
CloseConnectorPort();
EmitWithoutEvent("exit", exit_code);
Unpin();