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->oplen--;
|
||||||
state->opdata++;
|
state->opdata++;
|
||||||
|
|
||||||
|
if (g_cancellable_set_error_if_cancelled (cancellable, error))
|
||||||
|
goto out;
|
||||||
|
|
||||||
switch (opcode)
|
switch (opcode)
|
||||||
{
|
{
|
||||||
case OSTREE_STATIC_DELTA_OP_OPEN_SPLICE_AND_CLOSE:
|
case OSTREE_STATIC_DELTA_OP_OPEN_SPLICE_AND_CLOSE:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue