Ejemplo n.º 1
0
 that.ws.on("close", kettle.withRequest(that, function () {
     if (!fluid.isDestroyed(that)) {
         that.events.onRequestEnd.fire();
         that.destroy();
     }
 }));
Ejemplo n.º 2
0
 promise.then(function (solutions) {
     if (!fluid.isDestroyed(deviceReporter)) { // Fix failure for GPII-1227 tests which can receive this response after the deviceReporter is gone
         deviceReporter.fireResponse(request, solutions); // TODO: Remove such checks once FLUID-5790 is resolved
     }
 }, function (err) {
Ejemplo n.º 3
0
 that.socket.on("disconnect", function () {
     if (!fluid.isDestroyed(that)) {
         that.events.onRequestEnd.fire();
         that.destroy();
     }
 });
 promise.then(function (rawPrefs) {
     if (!fluid.isDestroyed(request)) { // TODO: Remove this ugly check when there is a solution for FLUID-5790
         request.buildReturnPayload(rawPrefs);
     }
 }, request.events.onError.fire);