Changeset

5644:f9cfe6f5d60f

mod_bosh: Reset creating_session to prevent putting unnecessary attributes into every BOSH response
author Matthew Wild <mwild1@gmail.com>
date Wed, 05 Jun 2013 21:35:50 +0100
parents 5643:e612e1887e39
children 5645:ae079d57af2e 5650:aa3465183b01
files plugins/mod_bosh.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Tue Jun 04 19:35:41 2013 +0200
+++ b/plugins/mod_bosh.lua	Wed Jun 05 21:35:50 2013 +0100
@@ -284,6 +284,7 @@
 					sid = sid;
 				};
 				if creating_session then
+					creating_session = nil;
 					body_attr.inactivity = tostring(BOSH_DEFAULT_INACTIVITY);
 					body_attr.polling = tostring(BOSH_DEFAULT_POLLING);
 					body_attr.requests = tostring(BOSH_DEFAULT_REQUESTS);