mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
persist the readable stream's cancel callback
This commit is contained in:
@@ -80,7 +80,7 @@ pub fn init(src_: ?UnderlyingSource, strategy_: ?QueueingStrategy, page: *Page)
|
|||||||
|
|
||||||
if (src.cancel) |callback| {
|
if (src.cancel) |callback| {
|
||||||
self._cancel = .{
|
self._cancel = .{
|
||||||
.callback = callback,
|
.callback = try callback.persist(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user