# HG changeset patch # User Matthew Wild # Date 1309276850 -3600 # Node ID 98ae0d0b4d073e0c814717fba35631e6959fae88 # Parent 6c082bf9bf0fc9af66aba6098045b4e7766d3ce2 mod_bosh: Fix logging when no sid present, fix a missing semi-colon, avoid an extra useless table lookup (thanks Thomas) diff -r 6c082bf9bf0f -r 98ae0d0b4d07 plugins/mod_bosh.lua --- 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 ""); if not sid then -- New session request request.notopen = nil; -- Signals that we accept this opening tag