From f1f760845a1751a6389bb5c2d27509931000e9f3 Mon Sep 17 00:00:00 2001 From: gettinToasty Date: Wed, 18 Dec 2024 12:51:36 -0800 Subject: [PATCH] Revert "graceful shutdown protocol implemented for ai highlighter (#5268)" This reverts commit bc3c6a77069d4a255faaf3530dc7e0092cff4224. --- .../highlighter/ai-highlighter/ai-highlighter.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/services/highlighter/ai-highlighter/ai-highlighter.ts b/app/services/highlighter/ai-highlighter/ai-highlighter.ts index 58f58c129a68..467fb919c3ff 100644 --- a/app/services/highlighter/ai-highlighter/ai-highlighter.ts +++ b/app/services/highlighter/ai-highlighter/ai-highlighter.ts @@ -4,7 +4,6 @@ import { AiHighlighterUpdater } from './updater'; import { duration } from 'moment'; import { ICoordinates } from '..'; import kill from 'tree-kill'; -import { getOS, OS } from 'util/operating-systems'; export enum EHighlighterInputTypes { KILL = 'kill', @@ -131,13 +130,7 @@ export function getHighlightClips( cancelSignal.addEventListener('abort', () => { console.log('ending highlighter process'); messageBuffer.clear(); - - // windows doesn't support signals and we have to use the custom graceful shutdown - if (getOS() === OS.Windows) { - childProcess.stdin?.write('quit\n'); - } else { - kill(childProcess.pid!, 'SIGINT'); - } + kill(childProcess.pid!, 'SIGINT'); reject(new Error('Highlight generation canceled')); }); }