client.end(function (error) {
        if (error) t.fail(error);

        helper.cleanMySQL(app, function done() {
          helper.unloadAgent(agent);
        });
      });
Ejemplo n.º 2
0
 pool.drain(function() {
   pool.destroyAllNow();
   helper.cleanMySQL(app, function done() {
     helper.unloadAgent(agent);
   });
 });