Remove double process start on init
This commit is contained in:
6
mod.ts
6
mod.ts
@@ -8,13 +8,11 @@ let appInitTime: number = Date.now();
|
||||
let timeout: number|null = null;
|
||||
|
||||
function runApp() {
|
||||
appInitTime = Date.now();
|
||||
app && app.close();
|
||||
appInitTime = Date.now();
|
||||
app.close();
|
||||
app = startProcess(Deno.args);
|
||||
}
|
||||
|
||||
runApp();
|
||||
|
||||
for await (const event of Deno.watchFs('.')) {
|
||||
if (event.kind !== "access") {
|
||||
if (timeout) clearTimeout(timeout);
|
||||
|
||||
Reference in New Issue
Block a user