kopia lustrzana https://github.com/c9/core
var name fix
rodzic
a97c3d6c33
commit
b46f26fa11
|
@ -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() {
|
||||||
|
|
Ładowanie…
Reference in New Issue