fixed an issue with Logger.io_close, needed to check for undefined on the socket.oEmit and socket. functions

This commit is contained in:
Andrew Darqui
2013-10-05 22:06:44 -04:00
parent 0b299b2fe7
commit 129af904f6
2 changed files with 5 additions and 8 deletions

View File

@@ -139,10 +139,10 @@ var opts = {
for(var v in clients) {
var client = clients[v];
if(client.oEmit != client.emit)
if(client.oEmit != undefined && client.oEmit != client.emit)
client.emit = client.oEmit;
if(client.$oEmit != client.$emit)
if(client.$oEmit != undefined && client.$oEmit != client.$emit)
client.$emit = client.$oEmit;
}
}