Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit 18a6cf5

Browse files
author
Mikhail Arkhipov
authored
Lock content since it is locked in other cases (#1227)
1 parent 14df8d4 commit 18a6cf5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Analysis/Ast/Impl/Modules/PythonModule.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,14 @@ protected virtual void Dispose(bool disposing) {
235235
/// <summary>
236236
/// Returns module content (code).
237237
/// </summary>
238-
public string Content => _buffer.Text;
238+
public string Content {
239+
get {
240+
lock (AnalysisLock) {
241+
return _buffer.Text;
242+
}
243+
}
244+
}
245+
239246
#endregion
240247

241248
#region Parsing

0 commit comments

Comments
 (0)