mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
||||
T: Send + Task,
|
||||
{
|
||||
fn name(&self) -> &'static str {
|
||||
self.inner.name()
|
||||
}
|
||||
|
||||
fn run(self: Box<Self>) {
|
||||
if !self.is_cancelled() {
|
||||
self.inner.run()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue