mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-08 12:38:33 +00:00
trivial: Watch the plugin config even if there's no ->startup()
This commit is contained in:
parent
5987a9691a
commit
7c4398615e
@ -912,22 +912,23 @@ fu_plugin_runner_startup(FuPlugin *self, FuProgress *progress, GError **error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* optional */
|
/* optional */
|
||||||
if (vfuncs->startup == NULL)
|
if (vfuncs->startup != NULL) {
|
||||||
return TRUE;
|
g_debug("startup(%s)", fu_plugin_get_name(self));
|
||||||
g_debug("startup(%s)", fu_plugin_get_name(self));
|
if (!vfuncs->startup(self, progress, &error_local)) {
|
||||||
if (!vfuncs->startup(self, progress, &error_local)) {
|
if (error_local == NULL) {
|
||||||
if (error_local == NULL) {
|
g_critical("unset plugin error in startup(%s)",
|
||||||
g_critical("unset plugin error in startup(%s)", fu_plugin_get_name(self));
|
|
||||||
g_set_error_literal(&error_local,
|
|
||||||
FWUPD_ERROR,
|
|
||||||
FWUPD_ERROR_INTERNAL,
|
|
||||||
"unspecified error");
|
|
||||||
}
|
|
||||||
g_propagate_prefixed_error(error,
|
|
||||||
g_steal_pointer(&error_local),
|
|
||||||
"failed to startup using %s: ",
|
|
||||||
fu_plugin_get_name(self));
|
fu_plugin_get_name(self));
|
||||||
return FALSE;
|
g_set_error_literal(&error_local,
|
||||||
|
FWUPD_ERROR,
|
||||||
|
FWUPD_ERROR_INTERNAL,
|
||||||
|
"unspecified error");
|
||||||
|
}
|
||||||
|
g_propagate_prefixed_error(error,
|
||||||
|
g_steal_pointer(&error_local),
|
||||||
|
"failed to startup using %s: ",
|
||||||
|
fu_plugin_get_name(self));
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* create a monitor on the config file */
|
/* create a monitor on the config file */
|
||||||
|
Loading…
Reference in New Issue
Block a user