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