mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
shutting down IPC router thread when a process shuts down.
This commit is contained in:
parent
67b433648c
commit
53497fe87f
3 changed files with 12 additions and 2 deletions
|
@ -145,6 +145,7 @@ use script_traits::{ScriptToConstellationChan, TimerSchedulerMsg};
|
|||
use script_traits::{TouchEventType, TouchId, UntrustedNodeAddress, WheelDelta};
|
||||
use script_traits::{UpdatePipelineIdReason, WebrenderIpcSender, WindowSizeData, WindowSizeType};
|
||||
use servo_atoms::Atom;
|
||||
use servo_config::opts;
|
||||
use servo_url::{ImmutableOrigin, MutableOrigin, ServoUrl};
|
||||
use std::borrow::Cow;
|
||||
use std::cell::Cell;
|
||||
|
@ -2908,6 +2909,12 @@ impl ScriptThread {
|
|||
.as_ref()
|
||||
.map(|bhm| bhm.unregister());
|
||||
|
||||
// If we're in multiprocess mode, shut-down the IPC router for this process.
|
||||
if opts::multiprocess() {
|
||||
debug!("Exiting IPC router thread in script thread.");
|
||||
ROUTER.shutdown();
|
||||
}
|
||||
|
||||
debug!("Exited script thread.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue