mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-30 16:34:56 -04:00
decrement next_tick_count when canceled
This commit is contained in:
1 file changed
+2
@@ -457,6 +457,8 @@ pub fn runNextTick(
|
||||
fn cancelNextTick(self: *Client, transfer: *Transfer) void {
|
||||
if (transfer._next_tick_node) |*ntn| {
|
||||
self.next_tick_queue.remove(&ntn.node);
|
||||
self.next_tick_count -= 1;
|
||||
|
||||
if (ntn.abort) |abort_cb| {
|
||||
abort_cb(ntn.ctx);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user