Skip to content

Commit

Permalink
Merge pull request #445 from ajaxorg/master
Browse files Browse the repository at this point in the history
Fix for calling open as a function while its a boolean
  • Loading branch information
rauchg committed Jun 28, 2012
2 parents b6aa5c0 + 9d0c063 commit 8c2ad76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@

// once the transport is ready
self.transport.ready(self, function () {
if (typeof self.transport.open != "function")
return self.publish('connect_failed');

self.connecting = true;
self.publish('connecting', self.transport.name);
self.transport.open();
Expand Down

0 comments on commit 8c2ad76

Please sign in to comment.