Skip to content

Commit

Permalink
Fix for #274 [atmosphere.js] long-polling issue with jQuery Atmospher…
Browse files Browse the repository at this point in the history
…e 0.9 RC3
  • Loading branch information
jfarcand committed Apr 11, 2012
1 parent cdfd637 commit c3d0441
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,10 @@ jQuery.atmosphere = function() {

if (rq.suspend) {
rq.id = setTimeout(function() {
ajaxRequest.abort();
_subscribe(rq);
if (_subscribed) {
ajaxRequest.abort();
_subscribe(rq);
}
}, rq.timeout);
}
_subscribed = true;
Expand Down Expand Up @@ -1375,6 +1377,7 @@ jQuery.atmosphere = function() {
* @private
*/
function _close() {
_subscribed = false;
_abordingConnection = true;
_response.state = 'unsubscribe';
_response.responseBody = "";
Expand Down

0 comments on commit c3d0441

Please sign in to comment.