don't emit errors when we are reconnecting

This commit is contained in:
Arnout Kazemier
2011-06-18 22:17:33 +02:00
parent c2c6e47e28
commit 2d84ede3e4
3 changed files with 3 additions and 3 deletions

2
dist/socket.io.js vendored
View File

@@ -1529,7 +1529,7 @@
if (xhr.status == 200) {
complete(xhr.responseText);
} else {
self.onError(xhr.responseText);
!self.reconnecting && self.onError(xhr.responseText);
}
}
};

File diff suppressed because one or more lines are too long

View File

@@ -141,7 +141,7 @@
if (xhr.status == 200) {
complete(xhr.responseText);
} else {
self.onError(xhr.responseText);
!self.reconnecting && self.onError(xhr.responseText);
}
}
};