Skip to content

Commit f0e48ef

Browse files
committed
Fix closing the wrong file handle.
1 parent e8d4828 commit f0e48ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/source_code_model/indexer/clang_indexer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def __run_on_directory(self, id, args):
130130

131131
# Each subprocess will get an empty DB file to record indexing results into it
132132
symbol_db_handle, symbol_db = create_empty_symbol_db(self.root_directory, self.symbol_db_name)
133-
os.fsync(indexer_input_handle)
134-
os.close(indexer_input_handle)
133+
os.fsync(symbol_db_handle)
134+
os.close(symbol_db_handle)
135135

136136
# Start indexing a given chunk in a new subprocess
137137
# Note: Running and handling subprocesses as following, and not via multiprocessing.Process module,

0 commit comments

Comments
 (0)