Skip to content

Commit

Permalink
Improved code.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Nov 13, 2023
1 parent bbd6a23 commit 0a41a87
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,17 @@ FS.restart = function(id) {
}
};

FS.save = function(data) {
FS.onsave(data);
};

function initping() {

if (FS.ping)
return;

FS.ping = true;
FS.off('load', initping);

// A simple prevetion for the Flow zombie processes
setInterval(function() {
Expand All @@ -245,6 +250,8 @@ function initping() {
}, 5000);
}

FS.on('load', initping);

global.Flow = FS;

setImmediate(function() {
Expand Down

0 comments on commit 0a41a87

Please sign in to comment.