aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-06-28 17:00:50 +0100
committerMatthew Wild <mwild1@gmail.com>2011-06-28 17:00:50 +0100
commitd7b9494d87cc145cbcce809852cb2ff6c04372b6 (patch)
tree35213dfc894b4c4fbb2fdd861275686f593baef3
parentb407706c8f0196204de0c3e8c77056ac568e26f4 (diff)
downloadprosody-d7b9494d87cc145cbcce809852cb2ff6c04372b6.tar.gz
prosody-d7b9494d87cc145cbcce809852cb2ff6c04372b6.zip
mod_bosh: Fix logging when no sid present, fix a missing semi-colon, avoid an extra useless table lookup (thanks Thomas)
-rw-r--r--plugins/mod_bosh.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index a6b84367..6550a44a 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -217,8 +217,8 @@ local function bosh_close_stream(session, reason)
end
function stream_callbacks.streamopened(request, attr)
- log("debug", "BOSH body open (sid: %s)", attr.sid);
- local sid = attr.sid
+ local sid = attr.sid;
+ log("debug", "BOSH body open (sid: %s)", sid or "<none>");
if not sid then
-- New session request
request.notopen = nil; -- Signals that we accept this opening tag