Changeset

12155:ae5988739990

mod_bookmarks: Unhook PEP service objects on removal from cache See 1dc00ca6ee9d
author Kim Alvefur <zash@zash.se>
date Sat, 08 Jan 2022 00:30:26 +0100 (2022-01-07)
parents 12154:760dd1fc3dc1
children 12156:17cffaa78f48
files plugins/mod_bookmarks.lua
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_bookmarks.lua	Thu Jan 06 18:56:06 2022 +0100
+++ b/plugins/mod_bookmarks.lua	Sat Jan 08 00:30:26 2022 +0100
@@ -418,4 +418,7 @@
 module:handle_items("pep-service", function (event)
 	local service = event.item.service;
 	module:hook_object_event(service.events, "node-created", on_node_created);
-end, function () end, true);
+end, function (event)
+	local service = event.item.service;
+	module:unhook_object_event(service.events, "node-created", on_node_created);
+end, true);