Skip to content
Snippets Groups Projects
Commit 6ff47b37 authored by Russell Bryant's avatar Russell Bryant
Browse files

actually use the cache_cache argument

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@133946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent ac79d99f
No related branches found
No related tags found
No related merge requests found
......@@ -339,9 +339,12 @@ static enum ast_device_state _ast_device_state(const char *device, int check_cac
char *provider = NULL;
/* If the last known state is cached, just return that */
res = devstate_cached(device);
if (res != AST_DEVICE_UNKNOWN)
return res;
if (check_cache) {
res = devstate_cached(device);
if (res != AST_DEVICE_UNKNOWN) {
return res;
}
}
buf = ast_strdupa(device);
tech = strsep(&buf, "/");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment