mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-09 12:58:38 +03:00
lib/deltas: Check cancellable during processing
Let's react to `Ctrl-C` faster here. Noticed while I was doing an update on my desktop and playing with cancellation. Closes: #1266 Approved by: jlebon
This commit is contained in:
parent
077d2718ad
commit
a1986b1a80
@ -229,6 +229,9 @@ _ostree_static_delta_part_execute (OstreeRepo *repo,
|
||||
state->oplen--;
|
||||
state->opdata++;
|
||||
|
||||
if (g_cancellable_set_error_if_cancelled (cancellable, error))
|
||||
goto out;
|
||||
|
||||
switch (opcode)
|
||||
{
|
||||
case OSTREE_STATIC_DELTA_OP_OPEN_SPLICE_AND_CLOSE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user