mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-29 21:28:30 +00:00
Whitespace can be a bitch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12327 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e46509f540
commit
557f7388f9
@ -1272,6 +1272,10 @@ static void *SWITCH_THREAD_FUNC api_exec(switch_thread_t *thread, void *obj)
|
|||||||
|
|
||||||
SWITCH_STANDARD_STREAM(stream);
|
SWITCH_STANDARD_STREAM(stream);
|
||||||
|
|
||||||
|
if (!strcasecmp(acs->api_cmd, "unload") || !strcasecmp(acs->arg, "mod_event_socket")) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if ((status = switch_api_execute(acs->api_cmd, acs->arg, NULL, &stream)) == SWITCH_STATUS_SUCCESS) {
|
if ((status = switch_api_execute(acs->api_cmd, acs->arg, NULL, &stream)) == SWITCH_STATUS_SUCCESS) {
|
||||||
reply = stream.data;
|
reply = stream.data;
|
||||||
} else {
|
} else {
|
||||||
@ -1351,7 +1355,7 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
|
|||||||
|
|
||||||
*reply = '\0';
|
*reply = '\0';
|
||||||
|
|
||||||
if (switch_stristr("unload mod_event_socket", cmd)) {
|
if (switch_stristr("unload", cmd) && switch_stristr("mod_event_socket", cmd)) {
|
||||||
cmd = cheat;
|
cmd = cheat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user