mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
fixed an issue with Logger.io_close, needed to check for undefined on the socket.oEmit and socket. functions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user