Skip to content

Commit 481e2d6

Browse files
committed
allow multiple synced processes
1 parent fcc6739 commit 481e2d6

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

FlashpointSecurePlayer/ProcessSync.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,9 @@ string name
9797

9898
private static IntPtr jobHandle = IntPtr.Zero;
9999

100-
private static bool Started { get; set; } = false;
101-
102100
public static void Start(Process process = null) {
103101
// this is here to make it so if the player crashes
104102
// the process it started is killed along with it
105-
if (Started) {
106-
return;
107-
}
108-
109103
IntPtr processHandle = IntPtr.Zero;
110104

111105
if (process == null) {
@@ -153,8 +147,6 @@ public static void Start(Process process = null) {
153147
if (!AssignProcessToJobObject(jobHandle, processHandle)) {
154148
throw new JobObjectException("Could assign the Process to the Job Object.");
155149
}
156-
157-
Started = true;
158150
} finally {
159151
Marshal.FreeHGlobal(jobobjectExtendedLimitInformationPointer);
160152
}

0 commit comments

Comments
 (0)