Skip to content

Commit 54a98bb

Browse files
author
Benjamin Berg
committed
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.
1 parent bfbe24b commit 54a98bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libfprint/fpi-device.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,7 @@ fpi_device_critical_leave (FpDevice *device)
912912
return;
913913

914914
priv->critical_section_flush_source = g_idle_source_new ();
915+
g_source_set_priority (priv->critical_section_flush_source, G_PRIORITY_HIGH);
915916
g_source_set_callback (priv->critical_section_flush_source,
916917
(GSourceFunc) fpi_device_critical_section_flush_idle_cb,
917918
device,

0 commit comments

Comments
 (0)