diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-06-20 23:31:08 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-06-20 23:31:08 +0000 |
commit | 396a37eba813394b699e27d02a026149f19cabc5 (patch) | |
tree | 3f50da7e5bf1f42f4eb056f19985332b946766d0 /apps/app_queue.c | |
parent | 2462d5ab4f33278cd547c2142370090b70905578 (diff) |
Fix trunk brokenness; also, optimize application registration
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70610 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index e82eed70f..51b83970c 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4808,7 +4808,7 @@ static int load_module(void) if (!(device_state_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE, device_state_cb, NULL, AST_EVENT_IE_END))) res = -1; - return res; + return res ? AST_MODULE_LOAD_DECLINE : 0; } static int reload(void) |