From: Olle Johansson Date: Tue, 17 Feb 2009 15:18:55 +0000 (+0000) Subject: If there are no realtime engines, there's no reason to check for realtime families X-Git-Tag: 1.6.2.0-beta1~206 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa26904074ec84272d6e58ed778af88d0df3315a;p=thirdparty%2Fasterisk.git If there are no realtime engines, there's no reason to check for realtime families git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@176513 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/config.c b/main/config.c index 33a8ecb7b7..83adee0a4d 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)