shiveshnavin commited on
Commit
0d87392
·
1 Parent(s): d969d2b
Files changed (1) hide show
  1. proxy-renderer.js +2 -2
proxy-renderer.js CHANGED
@@ -6,7 +6,6 @@ import fs from 'fs';
6
  import axios from 'axios';
7
  import os from 'os'
8
  import { exec, spawn } from 'child_process';
9
- import { Utils } from 'common-utils/index.js';
10
 
11
  const { RenderUtils } = await import('./src/RenderUtils.cjs');
12
  const { GenerateScript } = await import('./src/GenerateScript.cjs');
@@ -233,7 +232,8 @@ function renderChunk(
233
 
234
 
235
  const proc = startChildProcess();
236
- await Utils.sleep(5000);
 
237
  axios.post('http://localhost:3000/api/render', renderOptions).then(resp => {
238
  console.log('Studio started render', resp.data)
239
 
 
6
  import axios from 'axios';
7
  import os from 'os'
8
  import { exec, spawn } from 'child_process';
 
9
 
10
  const { RenderUtils } = await import('./src/RenderUtils.cjs');
11
  const { GenerateScript } = await import('./src/GenerateScript.cjs');
 
232
 
233
 
234
  const proc = startChildProcess();
235
+ // sleep fo4 5 sec
236
+ await new Promise(resolve) => setTimeout(resolve, 5000)
237
  axios.post('http://localhost:3000/api/render', renderOptions).then(resp => {
238
  console.log('Studio started render', resp.data)
239