Skip to content

Commit

Permalink
Make sure not to abort the for loop when skipping the transport
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Sep 20, 2010
1 parent f6d29b6 commit 9501cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socket.js
Expand Up @@ -67,7 +67,7 @@
if (self.options.tryTransportsOnConnectTimeout){
var remainingTransports = [], transports = self.options.transports;
for (var i = 0, transport; transport = transports[i]; i++){
if (transport == self.transport.type) return;
if (transport == self.transport.type) break;
remainingTransports.push(transport);
}
if (remainingTransports.length){
Expand Down

0 comments on commit 9501cb1

Please sign in to comment.