Skip to content
This repository has been archived by the owner on Mar 27, 2018. It is now read-only.

Commit

Permalink
Hopefully fixing issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
miksago committed Jun 17, 2010
1 parent 801cdd5 commit ea83745
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ws/manager.js
Expand Up @@ -52,7 +52,10 @@ Manager.prototype.detach = function(id, callback){
var current = this._tail;

if(this._length == 1 && current.id == id){
this._head = null;
this._head = {
_prev: null,
_next: null
};
this._tail = null;
} else {
while(current && current.id !== id){
Expand Down

0 comments on commit ea83745

Please sign in to comment.