Software /
code /
prosody
Diff
plugins/mod_bosh.lua @ 4327:98ae0d0b4d07
mod_bosh: Fix logging when no sid present, fix a missing semi-colon, avoid an extra useless table lookup (thanks Thomas)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 28 Jun 2011 17:00:50 +0100 |
parent | 4316:2478698bdc52 |
child | 4332:8154bc28e520 |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Mon Jun 27 20:36:18 2011 +0100 +++ b/plugins/mod_bosh.lua Tue Jun 28 17:00:50 2011 +0100 @@ -217,8 +217,8 @@ 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