diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-17 15:18:55 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-17 15:18:55 +0000 |
commit | d1a07617684df24f813f23f7f5c5cb29e7fc3875 (patch) | |
tree | e7adc4cd7f556a0b3d9567b9fa475c41646ab380 | |
parent | 21702a51695e95fb0049bdef214a0b210d1a7c2f (diff) |
If there are no realtime engines, there's no reason to check for realtime families
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@176513 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/config.c b/main/config.c index 33a8ecb7b..83adee0a4 100644 --- a/main/config.c +++ b/main/config.c @@ -2137,6 +2137,9 @@ struct ast_variable *ast_load_realtime(const char *family, ...) int ast_check_realtime(const char *family) { struct ast_config_engine *eng; + if (!ast_realtime_enabled()) { + return 0; /* There are no engines at all so fail early */ + } eng = find_engine(family, NULL, 0, NULL, 0); if (eng) |