From: Michael Giagnocavo Date: Wed, 29 Jul 2009 19:22:43 +0000 (+0000) Subject: Thanks jlenk for showing me boolean logic isn't that hard X-Git-Tag: v1.0.4~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb5977ecc27b13003b6c04a16f63df69f5eb211d;p=thirdparty%2Ffreeswitch.git 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 --- diff --git a/src/mod/languages/mod_managed/managed/PluginManager.cs b/src/mod/languages/mod_managed/managed/PluginManager.cs index c82d663fee..3d76b912a8 100644 --- a/src/mod/languages/mod_managed/managed/PluginManager.cs +++ b/src/mod/languages/mod_managed/managed/PluginManager.cs @@ -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; }