mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
virtual-device: Remove messages we can't process from queue when not scanning
Commands that are not valid for non-scan operations should be removed from queue, or these may be re-proposed forever.
This commit is contained in:
@@ -164,7 +164,11 @@ process_cmds (FpDeviceVirtualDevice * self,
|
||||
|
||||
/* If we are not scanning, then we have to stop here. */
|
||||
if (!scan)
|
||||
break;
|
||||
{
|
||||
g_warning ("Could not process command: %s", cmd);
|
||||
g_ptr_array_remove_index (self->pending_commands, 0);
|
||||
break;
|
||||
}
|
||||
|
||||
if (g_str_has_prefix (cmd, SCAN_CMD_PREFIX))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user