mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
Fixes a potential race condition when reading the Interop port
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user