From e6f83be67714fce941ca75fff6c8057ceed4647d Mon Sep 17 00:00:00 2001 From: eeff <33566201+eeff@users.noreply.github.com> Date: Thu, 17 Mar 2022 20:34:42 +0800 Subject: [PATCH] Update restful set license handler to sent update license event --- plugins/restful/license_handle.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/restful/license_handle.c b/plugins/restful/license_handle.c index c6bffd63..1ccd935e 100644 --- a/plugins/restful/license_handle.c +++ b/plugins/restful/license_handle.c @@ -98,6 +98,14 @@ static int set_license(const char *lic_str) if (0 > rename(fname_tmp, LICENSE_PATH)) { rv = NEU_ERR_EINTERNAL; + goto final; + } + + neu_plugin_t *plugin = neu_rest_get_plugin(); + rv = neu_plugin_notify_event_update_license( + plugin, neu_plugin_get_event_id(plugin)); + if (0 != rv) { + rv = NEU_ERR_EINTERNAL; } final: