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:
Marco Trevisan (Treviño)
2023-06-22 00:14:30 -04:00
parent 28579239a6
commit 0819df6988

View File

@@ -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);
}