mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
virtual-device: Reset transient parameters on deinit
Tests may change some options so we need to reset these values, even though some may need not to be reserved when not in keep-alive mode.
This commit is contained in:
@@ -733,7 +733,13 @@ dev_deinit (FpDevice *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!self->keep_alive)
|
if (!self->keep_alive)
|
||||||
|
{
|
||||||
stop_listener (self);
|
stop_listener (self);
|
||||||
|
self->supports_cancellation = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
self->enroll_stages_passed = 0;
|
||||||
|
self->match_reported = FALSE;
|
||||||
|
|
||||||
fpi_device_close_complete (dev, NULL);
|
fpi_device_close_complete (dev, NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user