diff options
-rw-r--r-- | priv/bullet.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/priv/bullet.js b/priv/bullet.js index 50686f6..7c3c977 100644 --- a/priv/bullet.js +++ b/priv/bullet.js @@ -257,8 +257,9 @@ }; transport.onclose = function(){ // Firefox 13.0.1 sends 2 close events. - // Return directly if we already handled it. - if (isClosed){ + // Return directly if we already handled it + // or we are closed + if (isClosed || readyState == CLOSED){ return; } |