summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--priv/bullet.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/bullet.js b/priv/bullet.js
index 50686f6..1a53998 100644
--- a/priv/bullet.js
+++ b/priv/bullet.js
@@ -237,7 +237,7 @@
// Hard disconnect, inform the user and retry later
delay = delayDefault;
tn = 0;
- stream.ondisconnect();
+ stream && stream.ondisconnect();
setTimeout(function(){init();}, delayMax);
return false;
}