iface-modem-time: ignore cancellation during sync()
There is no input cancellable in the method, so the GTask will never get cancelled from the outside.
This commit is contained in:
@@ -757,12 +757,6 @@ interface_syncing_step (GTask *task)
|
|||||||
MMIfaceModemTime *self;
|
MMIfaceModemTime *self;
|
||||||
SyncingContext *ctx;
|
SyncingContext *ctx;
|
||||||
|
|
||||||
/* Don't run new steps if we're cancelled */
|
|
||||||
if (g_task_return_error_if_cancelled (task)) {
|
|
||||||
g_object_unref (task);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
self = g_task_get_source_object (task);
|
self = g_task_get_source_object (task);
|
||||||
ctx = g_task_get_task_data (task);
|
ctx = g_task_get_task_data (task);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user