pull/39/head
Tim Robinson 2015-02-19 14:06:10 +00:00
rodzic a97c3d6c33
commit b46f26fa11
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -178,7 +178,7 @@ Vfs.prototype._createEngine = function(vfs, options) {
to track and log all reasons causing it to close so when users to track and log all reasons causing it to close so when users
complain about disconnects we can investigate what's causing them */ complain about disconnects we can investigate what's causing them */
var listenForEIOSocketEvents = function (eioSocket) { var listenForEIOSocketEvents = function (eioSocket) {
if (!eioSocket || listeningForEIOSocketClose) return; if (!eioSocket || listeningForEIOSocketEvents) return;
eioSocket.once("close", function (reason, description) { eioSocket.once("close", function (reason, description) {
var logMetadata = {message: "Socket closed", collab: options.collab, reason: reason, description: description, id: that.id, sid: socket.id, pid: that.pid}; var logMetadata = {message: "Socket closed", collab: options.collab, reason: reason, description: description, id: that.id, sid: socket.id, pid: that.pid};
that.logger.log(logMetadata); that.logger.log(logMetadata);
@ -188,7 +188,7 @@ Vfs.prototype._createEngine = function(vfs, options) {
var newTransportName = transport && transport.name ? transport.name : "unknown"; var newTransportName = transport && transport.name ? transport.name : "unknown";
var logMetadata = {message: "Socket transport changed", collab: options.collab, type: newTransportName, id: that.id, sid: socket.id, pid: that.pid}; var logMetadata = {message: "Socket transport changed", collab: options.collab, type: newTransportName, id: that.id, sid: socket.id, pid: that.pid};
that.logger.log(logMetadata); that.logger.log(logMetadata);
}) });
listeningForEIOSocketEvents = true; listeningForEIOSocketEvents = true;
}; };
socket.socket.once('away', function() { socket.socket.once('away', function() {