forked from Onek8/LNXSDK
Update
This commit is contained in:
@ -71,7 +71,9 @@ export class HaxeCompiler {
|
||||
this.scheduleCompile();
|
||||
});
|
||||
this.startCompilationServer();
|
||||
this.triggerCompilationServer();
|
||||
setTimeout(() => {
|
||||
this.triggerCompilationServer();
|
||||
}, 50);
|
||||
}
|
||||
else {
|
||||
try {
|
||||
@ -196,9 +198,11 @@ export class HaxeCompiler {
|
||||
process.stdout.write('\x1Bc');
|
||||
log.info('Haxe compile end.');
|
||||
if (this.isLiveReload) {
|
||||
this.wsClients.forEach(client => {
|
||||
client.send(JSON.stringify({}));
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.wsClients.forEach(client => {
|
||||
client.send(JSON.stringify({}));
|
||||
});
|
||||
}, 200);
|
||||
}
|
||||
for (let callback of Callbacks.postHaxeRecompilation) {
|
||||
callback();
|
||||
@ -238,13 +242,4 @@ export class HaxeCompiler {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
private static spinRename(from: string, to: string): void {
|
||||
for (; ; ) {
|
||||
if (fs.existsSync(from)) {
|
||||
fs.renameSync(from, to);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user