Thanks jlenk for showing me boolean logic isn't that hard

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14418 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Giagnocavo 2009-07-29 19:22:43 +00:00
parent 1b13f8894e
commit eb5977ecc2

View File

@ -181,7 +181,10 @@ namespace FreeSWITCH {
var res = LoadInternal(file);
isLoaded = true;
res = res && AppExecutors.Count > 0 && ApiExecutors.Count > 0;
if (res) {
res = (AppExecutors.Count > 0 || ApiExecutors.Count > 0);
if (!res) Log.WriteLine(LogLevel.Info, "No App or Api plugins found in {0}.", file);
}
return res;
}