projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac79d99
)
actually use the cache_cache argument
author
Russell Bryant
<russell@russellbryant.com>
Sat, 26 Jul 2008 15:16:20 +0000
(15:16 +0000)
committer
Russell Bryant
<russell@russellbryant.com>
Sat, 26 Jul 2008 15:16:20 +0000
(15:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@133946
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/devicestate.c
patch
|
blob
|
history
diff --git
a/main/devicestate.c
b/main/devicestate.c
index
97c9c06
..
1601ee1
100644
(file)
--- a/
main/devicestate.c
+++ b/
main/devicestate.c
@@
-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, "/");