]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Thanks jlenk for showing me boolean logic isn't that hard
authorMichael Giagnocavo <mgg@giagnocavo.net>
Wed, 29 Jul 2009 19:22:43 +0000 (19:22 +0000)
committerMichael Giagnocavo <mgg@giagnocavo.net>
Wed, 29 Jul 2009 19:22:43 +0000 (19:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14418 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_managed/managed/PluginManager.cs

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