mirror of
https://github.com/morgan9e/libfprint-fpc1020
synced 2026-04-14 00:14:16 +09: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)
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user