Only skip retry for WebSocket errors between 4400 and 4499

This commit is contained in:
Dan Stillman 2017-07-02 01:32:47 -04:00
parent 72feaab6f4
commit 2efd7121b8

View file

@ -139,7 +139,7 @@ Zotero.Sync.Streamer_Module.prototype = {
}
if (this._reconnect) {
if (event.code >= 4000) {
if (event.code >= 4400 && event.code < 4500) {
Zotero.debug("Not reconnecting to WebSocket due to client error");
return;
}