diff --git a/shadowsocks-csharp/Encrypt/PolarSSL.cs b/shadowsocks-csharp/Encrypt/PolarSSL.cs index a76882b6..79941d57 100755 --- a/shadowsocks-csharp/Encrypt/PolarSSL.cs +++ b/shadowsocks-csharp/Encrypt/PolarSSL.cs @@ -23,7 +23,6 @@ namespace Shadowsocks.Encrypt try { FileManager.UncompressFile(dllPath, Resources.libsscrypto_dll); - LoadLibrary(dllPath); } catch (IOException) { @@ -32,6 +31,7 @@ namespace Shadowsocks.Encrypt { Console.WriteLine(e.ToString()); } + LoadLibrary(dllPath); } [DllImport("Kernel32.dll")] diff --git a/shadowsocks-csharp/Encrypt/Sodium.cs b/shadowsocks-csharp/Encrypt/Sodium.cs index 1fd6cc55..faced736 100755 --- a/shadowsocks-csharp/Encrypt/Sodium.cs +++ b/shadowsocks-csharp/Encrypt/Sodium.cs @@ -28,6 +28,7 @@ namespace Shadowsocks.Encrypt { Console.WriteLine(e.ToString()); } + LoadLibrary(dllPath); } [DllImport("Kernel32.dll")]