mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 20:27:19 +00:00
Using load instead of LoadFrom fixes some crashes and loading issues.
This commit is contained in:
parent
8877d1d36d
commit
fa5289eab7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user