diff --git a/source/Server/Common/Current.cs b/source/Server/Common/Current.cs index 0d57788c8..883c4a794 100644 --- a/source/Server/Common/Current.cs +++ b/source/Server/Common/Current.cs @@ -4,11 +4,7 @@ namespace SharpLab.Server.Common { public static class Current { - public static readonly int ProcessId = ((Func)(() => { - using (var current = Process.GetCurrentProcess()) { - return current.Id; - } - }))(); + public static readonly int ProcessId = Environment.ProcessId; public static readonly string AssemblyPath = typeof(Current).Assembly.GetAssemblyFile().FullName; }