mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-10 03:27:59 +00:00
Update gitnexus/src/core/run-analyze.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
958182dcd7
commit
9aed932544
1 changed files with 7 additions and 5 deletions
|
|
@ -356,11 +356,13 @@ export async function runFullAnalysis(
|
|||
} catch (err) {
|
||||
// Ensure native resources are closed even on error to prevent
|
||||
// C++ atexit destructor races during process.exit() (#38, #40).
|
||||
try {
|
||||
const { disposeEmbedder } = await import('./embeddings/embedder.js');
|
||||
await disposeEmbedder();
|
||||
} catch {
|
||||
/* swallow */
|
||||
if (options.embeddings) {
|
||||
try {
|
||||
const { disposeEmbedder } = await import('./embeddings/embedder.js');
|
||||
await disposeEmbedder();
|
||||
} catch {
|
||||
/* swallow */
|
||||
}
|
||||
}
|
||||
try {
|
||||
await closeLbug();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue