Revert readyState check, skip test for now

This commit is contained in:
wltsmrz
2014-07-17 13:07:31 -07:00
parent 9789f76f64
commit ca2d137d52
2 changed files with 2 additions and 19 deletions

View File

@@ -364,24 +364,7 @@ Server.prototype.connect = function() {
// Ensure any existing socket is given the command to close first.
if (this._ws) {
switch (this._ws.readyState) {
case 0:
// Connecting
return;
case 1:
// Open
this.once('socket_close', function() {
self.connect();
});
this._ws.close();
return;
case 2:
// Closing
this.once('socket_close', function() {
self.connect();
});
return;
}
this._ws.close();
}
if (this._remote.trace) {

View File

@@ -411,7 +411,7 @@ describe('Server', function() {
});
});
it('Connect - prior WebSocket connection exists', function(done) {
it.skip('Connect - prior WebSocket connection exists', function(done) {
var wss = new ws.Server({ port: 5748 });
wss.once('connection', function(ws) {