mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Don't use a fiber since we don't yield
This commit is contained in:
@@ -18,15 +18,13 @@ _.extend(exports, {
|
||||
});
|
||||
|
||||
var runHandlers = function () {
|
||||
Fiber(function () {
|
||||
fiberHelpers.noYieldsAllowed(function () {
|
||||
var handlers = cleanup._exitHandlers;
|
||||
cleanup._exitHandlers = [];
|
||||
_.each(handlers, function (f) {
|
||||
f();
|
||||
});
|
||||
fiberHelpers.noYieldsAllowed(function () {
|
||||
var handlers = cleanup._exitHandlers;
|
||||
cleanup._exitHandlers = [];
|
||||
_.each(handlers, function (f) {
|
||||
f();
|
||||
});
|
||||
}).run();
|
||||
});
|
||||
};
|
||||
|
||||
process.on('exit', runHandlers);
|
||||
|
||||
Reference in New Issue
Block a user