Software /
code /
prosody
Changeset
8295:8e82aa858ed2
mod_pubsub: Correct traceback in loop invocation (data is the iterator, does not return one)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 08 Oct 2017 00:35:09 +0200 |
parents | 8294:90576b60f2d0 |
children | 8296:e23328adca25 |
files | plugins/mod_pubsub/pubsub.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua Thu Oct 05 18:06:04 2017 +0200 +++ b/plugins/mod_pubsub/pubsub.lib.lua Sun Oct 08 00:35:09 2017 +0200 @@ -358,7 +358,7 @@ end -- Workaround for buggy SQL drivers which require iterating until we get a nil. local id, payload, when, publisher; - for a, b, c, d in data() do + for a, b, c, d in data do id, payload, when, publisher = a, b, c, d; end module:log("debug", "Get item %s (published at %s by %s) from store %s", id, when, publisher, store);