mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Preserve the name of inner tasks in cancellable ones
This commit is contained in:
parent
a7655a3f84
commit
5ed6abe22c
1 changed files with 4 additions and 0 deletions
|
@ -82,6 +82,10 @@ impl<T> Task for CancellableTask<T>
|
||||||
where
|
where
|
||||||
T: Send + Task,
|
T: Send + Task,
|
||||||
{
|
{
|
||||||
|
fn name(&self) -> &'static str {
|
||||||
|
self.inner.name()
|
||||||
|
}
|
||||||
|
|
||||||
fn run(self: Box<Self>) {
|
fn run(self: Box<Self>) {
|
||||||
if !self.is_cancelled() {
|
if !self.is_cancelled() {
|
||||||
self.inner.run()
|
self.inner.run()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue