summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1c60de9)
ast_mutex_lock(&actionlock);
while(cur) { /* Walk the list of actions */
ast_mutex_lock(&actionlock);
while(cur) { /* Walk the list of actions */
+ if (!strcasecmp(cur->action, action)) {
+ ast_log(LOG_WARNING, "Manager: Action '%s' already registered\n", action);
+ ast_mutex_unlock(&actionlock);
+ return -1;
+ }
prev = cur;
cur = cur->next;
}
prev = cur;
cur = cur->next;
}