diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-06-28 17:00:50 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-06-28 17:00:50 +0100 |
commit | d7b9494d87cc145cbcce809852cb2ff6c04372b6 (patch) | |
tree | 35213dfc894b4c4fbb2fdd861275686f593baef3 /plugins | |
parent | b407706c8f0196204de0c3e8c77056ac568e26f4 (diff) | |
download | prosody-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)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_bosh.lua | 4 |
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 |