diff --git a/TGServerService/Config.cs b/TGServerService/Config.cs index d085c952c9..80c95d9bb4 100644 --- a/TGServerService/Config.cs +++ b/TGServerService/Config.cs @@ -407,7 +407,10 @@ namespace TGServerService try { error = null; - return Convert.ToUInt16(File.ReadAllText(InteropConfig)); + lock (configLock) + { + return Convert.ToUInt16(File.ReadAllText(InteropConfig)); + } } catch (Exception e) {