projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mod_storage_sql: Catch Lua errors during SQL transactions, and rollback.
[prosody.git]
/
util
/
events.lua
diff --git
a/util/events.lua
b/util/events.lua
index 8e05072d55d958452638d9862dfcb1bc1853274b..412acccd762cb755a9c0627f2689ea82b5989465 100644
(file)
--- a/
util/events.lua
+++ b/
util/events.lua
@@
-45,6
+45,9
@@
function new()
if map then
map[handler] = nil;
handlers[event] = nil;
+ if next(map) == nil then
+ event_map[event] = nil;
+ end
end
end;
local function add_handlers(handlers)