mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Sending exit message to devtools to exit.
Accepted and closed incoming streams Added header to for constant use. Removed extra spaces. Corrected spacing to conform to coding standards. Corrected spacing to conform to coding standards. Corrected spacing to conform with coding standards. Moving new import next to old import for devtools_traits as specified in comment. Removed method definition to include as inline code and changed to iter_mut. Using loops to exit devtools on server exit message and disconnected message to simply break as suggested in the comment. Removing TODO comment for completed functionality. Moved the operation for exit of devtools on servo closing outside the match loop. Removing trailing ';' and adding new line before connection closing loop.
This commit is contained in:
parent
ccdd2910a2
commit
fc7b3699ed
2 changed files with 12 additions and 3 deletions
|
@ -5,6 +5,7 @@
|
|||
use pipeline::{Pipeline, CompositionPipeline};
|
||||
|
||||
use compositor_task::{CompositorProxy, FrameTreeUpdateMsg, LoadComplete, ShutdownComplete, SetLayerOrigin, SetIds};
|
||||
use devtools_traits;
|
||||
use devtools_traits::DevtoolsControlChan;
|
||||
use geom::rect::{Rect, TypedRect};
|
||||
use geom::scale_factor::ScaleFactor;
|
||||
|
@ -460,6 +461,9 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
|
|||
}
|
||||
self.image_cache_task.exit();
|
||||
self.resource_task.send(resource_task::Exit);
|
||||
self.devtools_chan.as_ref().map(|chan| {
|
||||
chan.send(devtools_traits::ServerExitMsg);
|
||||
});
|
||||
self.font_cache_task.exit();
|
||||
self.compositor_proxy.send(ShutdownComplete);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue