kopia lustrzana https://github.com/c9/core
Adding more vfs metrics, fixing bugs
rodzic
1ddffa375d
commit
5374effc0f
|
@ -78,6 +78,9 @@ define(function(require, exports, module) {
|
|||
if (loaded) return false;
|
||||
loaded = true;
|
||||
|
||||
|
||||
emit("loaded");
|
||||
|
||||
smith.debug = DEBUG;
|
||||
|
||||
connection = connectClient(connectEngine, {
|
||||
|
@ -114,7 +117,10 @@ define(function(require, exports, module) {
|
|||
if (!pingUrl) return disconnect();
|
||||
|
||||
vfsEndpoint.isServerAlive(pingUrl, function(err, isAlive) {
|
||||
if (!err && isAlive) return callback(null, true);
|
||||
if (!err && isAlive) {
|
||||
emit("preConnectChecked");
|
||||
return callback(null, true);
|
||||
}
|
||||
|
||||
disconnect();
|
||||
});
|
||||
|
@ -279,6 +285,8 @@ define(function(require, exports, module) {
|
|||
function onConnect() {
|
||||
var transport = new smith.EngineIoTransport(connection);
|
||||
|
||||
emit("onConnect");
|
||||
|
||||
if (consumer)
|
||||
consumer.disconnect();
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue