mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
script: Remove Drop implementation of FetchCanceller (#41384)
Instead, we now explicitly call `.terminate()` and introduce relevant methods to FetchCanceller. Follow-up from review in #41345 --------- Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com> Signed-off-by: Tim van der Lippe <TimvdLippe@users.noreply.github.com> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
committed by
GitHub
parent
76691c5ce5
commit
d8bf293828
@@ -3666,7 +3666,7 @@ impl HTMLMediaElementFetchContext {
|
||||
}
|
||||
self.cancel_reason = Some(reason);
|
||||
self.data_source.borrow_mut().reset();
|
||||
self.fetch_canceller.cancel();
|
||||
self.fetch_canceller.abort();
|
||||
}
|
||||
|
||||
fn cancel_reason(&self) -> &Option<CancelReason> {
|
||||
|
||||
Reference in New Issue
Block a user