mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
Using load instead of LoadFrom fixes some crashes and loading issues.
This commit is contained in:
@@ -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