trivial: Invalidate the probe if the FuDevice is closed

For DFU it is important to re-get the interfaces and list of quirks when
switching from runtime -> bootloader -> runtime.
This commit is contained in:
Richard Hughes 2018-08-30 16:37:32 +01:00
parent 838d91e4ed
commit 0f72ef2f88

View File

@ -1643,6 +1643,9 @@ fu_device_close (FuDevice *device, GError **error)
if (!klass->close (device, error)) if (!klass->close (device, error))
return FALSE; return FALSE;
} }
/* probe if we re-open */
priv->done_probe = FALSE;
return TRUE; return TRUE;
} }