Archived
14
0
Fork 0

actually use the cache_cache argument

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133946 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2008-07-26 15:16:20 +00:00
parent 9e1954caf6
commit 695ec5d5c7

View file

@ -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, "/");