Skip to content

Commit cfb1af4

Browse files
committed
fix: add null check for proc.stdin
1 parent f9fb6a8 commit cfb1af4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/managers/common/nativePythonFinder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ class NativePythonFinderImpl implements NativePythonFinder {
425425
// Attempt graceful shutdown by closing stdin before killing
426426
// This gives the process a chance to clean up
427427
this.outputChannel.debug('[pet] Shutting down Python Locator server');
428-
proc.stdin.end();
428+
proc.stdin?.end();
429429
// Give process a moment to exit gracefully, then force kill
430430
setTimeout(() => {
431431
if (proc.exitCode === null) {

0 commit comments

Comments
 (0)