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