diff options
author | Benjamin Berg <bberg@redhat.com> | 2022-05-17 20:23:26 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2022-05-17 20:29:00 +0200 |
commit | 54a98bb2860ee7d352ddf1e8876d73bf81bed5a1 (patch) | |
tree | 70f8f12347130a01112ca1f782525b01c2988b67 | |
parent | bfbe24b1720195ea68c655c545a73bd4e916792d (diff) |
device: Run critical section flushing with a high priority
These delayed calls are pushed into the mainloop for consistency.
However, they should run immediately and not be delayed, as such, it
makes sense to run them at a higher priority.
This actually solves an issue inside the CI where an URB reply is played
back even though it should be cancelled by the client.
-rw-r--r-- | libfprint/fpi-device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libfprint/fpi-device.c b/libfprint/fpi-device.c index 9209204..4fe8908 100644 --- a/libfprint/fpi-device.c +++ b/libfprint/fpi-device.c @@ -912,6 +912,7 @@ fpi_device_critical_leave (FpDevice *device) return; priv->critical_section_flush_source = g_idle_source_new (); + g_source_set_priority (priv->critical_section_flush_source, G_PRIORITY_HIGH); g_source_set_callback (priv->critical_section_flush_source, (GSourceFunc) fpi_device_critical_section_flush_idle_cb, device, |