Skip to content

Commit b765016

Browse files
committed
Prevent potential race condition
1 parent c3eb715 commit b765016

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ static NativeMethods()
2626
String.Format("{0}{1}{2}", path, Path.PathSeparator, Environment.GetEnvironmentVariable(pathEnvVariable)));
2727
}
2828

29-
AppDomain.CurrentDomain.ProcessExit += ThreadsShutdown;
30-
3129
git_threads_init();
30+
AppDomain.CurrentDomain.ProcessExit += ThreadsShutdown;
3231
}
3332

3433
private static void ThreadsShutdown(object sender, EventArgs e)

0 commit comments

Comments
 (0)