File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments