diff options
author | yorah <yoram.harmelin@gmail.com> | 2012-08-29 20:05:47 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-08-29 22:14:31 +0400 |
commit | eb304fb0c92df60339836b962a96a3d43f48d7f7 (patch) | |
tree | b49ad08201406d354304010c5f17d241d1b99c3c /LibGit2Sharp/Signature.cs | |
parent | 8fa70ffce8bca7ff66fe4b84293d14b66bbed29f (diff) |
Make retrieval of error message thread-safe
Fix #203
Diffstat (limited to 'LibGit2Sharp/Signature.cs')
-rw-r--r-- | LibGit2Sharp/Signature.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/LibGit2Sharp/Signature.cs b/LibGit2Sharp/Signature.cs index 629b445c..ac12779e 100644 --- a/LibGit2Sharp/Signature.cs +++ b/LibGit2Sharp/Signature.cs @@ -39,12 +39,7 @@ namespace LibGit2Sharp internal SignatureSafeHandle BuildHandle() { - SignatureSafeHandle signature; - - int result = NativeMethods.git_signature_new(out signature, name, email, when.ToSecondsSinceEpoch(), - (int) when.Offset.TotalMinutes); - Ensure.Success(result); - return signature; + return Proxy.git_signature_new(name, email, when); } /// <summary> |