mod_bosh: Reset creating_session to prevent putting unnecessary attributes into every BOSH response
authorMatthew Wild <mwild1@gmail.com>
Wed, 05 Jun 2013 21:35:50 +0100
changeset 5644 f9cfe6f5d60f
parent 5643 e612e1887e39
child 5645 ae079d57af2e
child 5650 aa3465183b01
mod_bosh: Reset creating_session to prevent putting unnecessary attributes into every BOSH response
plugins/mod_bosh.lua
--- 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);