Revision
14418
Author
michaelgg
Date
2009-07-29 14:22:43 -0500 (Wed, 29 Jul 2009)

Log Message

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

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/languages/mod_managed/managed/PluginManager.cs (14417 => 14418)


--- freeswitch/trunk/src/mod/languages/mod_managed/managed/PluginManager.cs	2009-07-29 19:15:00 UTC (rev 14417)
+++ freeswitch/trunk/src/mod/languages/mod_managed/managed/PluginManager.cs	2009-07-29 19:22:43 UTC (rev 14418)
@@ -181,7 +181,10 @@
             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;
         }