summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-11-23 11:37:41 +0100
committerLoïc Hoguin <[email protected]>2011-11-23 11:37:41 +0100
commitd18da26a3785a7950603696db39cb22fae251ccf (patch)
treea048f41b9657d6b5a48ef9fa158bbab6a45c02fc
parent57a472dcb73dea1438c7e28a598b27653ddcd01d (diff)
downloadbullet-d18da26a3785a7950603696db39cb22fae251ccf.tar.gz
bullet-d18da26a3785a7950603696db39cb22fae251ccf.tar.bz2
bullet-d18da26a3785a7950603696db39cb22fae251ccf.zip
Don't reconnect xhrPolling on error, let stream handle it
-rw-r--r--priv/bullet.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/priv/bullet.js b/priv/bullet.js
index d30dbc5..ede2445 100644
--- a/priv/bullet.js
+++ b/priv/bullet.js
@@ -115,7 +115,6 @@
fake.onopen(fake);
}
-
xhr = $.ajax({
type: 'GET',
url: fakeurl,
@@ -132,9 +131,7 @@
}
},
error: function(xhr){
- if (fake.readyState == OPEN){
- nextPoll();
- }
+ fake.onerror();
}
});
}