diff --git a/src/core.js b/src/core.js index f0b5634a..fb1dc8a1 100644 --- a/src/core.js +++ b/src/core.js @@ -2388,7 +2388,8 @@ Strophe.Connection.prototype = { "." + req.sends + " posting"); try { - req.xhr.open("POST", this.service, true); + var async = (this.sync) ? false : true; + req.xhr.open("POST", this.service, async); } catch (e2) { Strophe.error("XHR open failed."); if (!this.connected) {