mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 15:29:05 +00:00
actually use the cache_cache argument
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@133946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -339,9 +339,12 @@ static enum ast_device_state _ast_device_state(const char *device, int check_cac
|
|||||||
char *provider = NULL;
|
char *provider = NULL;
|
||||||
|
|
||||||
/* If the last known state is cached, just return that */
|
/* If the last known state is cached, just return that */
|
||||||
res = devstate_cached(device);
|
if (check_cache) {
|
||||||
if (res != AST_DEVICE_UNKNOWN)
|
res = devstate_cached(device);
|
||||||
return res;
|
if (res != AST_DEVICE_UNKNOWN) {
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
buf = ast_strdupa(device);
|
buf = ast_strdupa(device);
|
||||||
tech = strsep(&buf, "/");
|
tech = strsep(&buf, "/");
|
||||||
|
|||||||
Reference in New Issue
Block a user