Skip to content

Commit d841b3e

Browse files
committed
Merge pull request #454 from nateps/master
Don't try to reconnect after receiving a 403 authorization error
2 parents 0679af0 + 225e86f commit d841b3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/socket.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@
157157

158158
if (xhr.status == 200) {
159159
complete(xhr.responseText);
160+
} else if (xhr.status == 403) {
161+
self.onError(xhr.responseText);
160162
} else {
161163
self.connecting = false;
162164
!self.reconnecting && self.onError(xhr.responseText);

0 commit comments

Comments
 (0)