aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-02 17:13:12 +0200
committerKim Alvefur <zash@zash.se>2016-04-02 17:13:12 +0200
commitd5c31923e6b7d3884d3b7d16b8dae355511d9773 (patch)
tree53679081d88331034afaa2bea1ac671a886d597a
parent467b6b0bfe3b69ac9c178ff06b310bb58d4b6617 (diff)
parent5db607f37e4370d12d350c0894804331a0231d5e (diff)
downloadprosody-d5c31923e6b7d3884d3b7d16b8dae355511d9773.tar.gz
prosody-d5c31923e6b7d3884d3b7d16b8dae355511d9773.zip
Merge 0.10->trunk
-rw-r--r--core/storagemanager.lua2
-rw-r--r--plugins/mod_bosh.lua1
2 files changed, 2 insertions, 1 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index 2d6d93f6..cadae0ed 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -196,7 +196,7 @@ end
function datamanager.users(host, datastore, typ)
local driver = open(host, datastore, typ);
if not driver.users then
- return function() log("warn", "storage driver %s does not support listing users", driver.name) end
+ return function() log("warn", "Storage driver %s does not support listing users", driver.name) end
end
return driver:users();
end
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 408ed37f..a567c605 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -309,6 +309,7 @@ function stream_callbacks.streamopened(context, attr)
end
s = filter("stanzas/out", s);
--log("debug", "Sending BOSH data: %s", tostring(s));
+ if not s then return true end
t_insert(session.send_buffer, tostring(s));
local oldest_request = r[1];