mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 23:24:18 +00:00
Using load instead of LoadFrom fixes some crashes and loading issues.
This commit is contained in:
1 parent
8877d1d36d
commit
fa5289eab7
1 file changed
+1
-1
@@ -283,7 +283,7 @@ namespace FreeSWITCH {
|
||||
protected override bool LoadInternal(string fileName) {
|
||||
Assembly asm;
|
||||
try {
|
||||
asm = Assembly.LoadFrom(fileName);
|
||||
asm = Assembly.Load(System.IO.File.ReadAllBytes(fileName));
|
||||
} catch (Exception ex) {
|
||||
Log.WriteLine(LogLevel.Info, "Couldn't load {0}: {1}", fileName, ex.Message);
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user