diff options
author | Loïc Hoguin <[email protected]> | 2011-11-23 11:37:41 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-11-23 11:37:41 +0100 |
commit | d18da26a3785a7950603696db39cb22fae251ccf (patch) | |
tree | a048f41b9657d6b5a48ef9fa158bbab6a45c02fc /priv | |
parent | 57a472dcb73dea1438c7e28a598b27653ddcd01d (diff) | |
download | bullet-d18da26a3785a7950603696db39cb22fae251ccf.tar.gz bullet-d18da26a3785a7950603696db39cb22fae251ccf.tar.bz2 bullet-d18da26a3785a7950603696db39cb22fae251ccf.zip |
Don't reconnect xhrPolling on error, let stream handle it
Diffstat (limited to 'priv')
-rw-r--r-- | priv/bullet.js | 5 |
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(); } }); } |