Skip to content

Commit

Permalink
Merge pull request #4436 from remotion-dev/fix-close-server-race-cond…
Browse files Browse the repository at this point in the history
…ition
  • Loading branch information
JonnyBurger authored Oct 29, 2024
2 parents edb195d + 2d7fdbf commit c113843
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/renderer/src/serve-static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ export const serveStatic = async (
// this is okay as we are in cleanup phase
closeCompositor()
.catch((err) => {
if ((err as Error).message.includes('Compositor quit')) {
resolve();
return;
}

reject(err);
})
.finally(() => {
Expand Down

0 comments on commit c113843

Please sign in to comment.