This commit is contained in:
Anthony Minessale 2011-04-29 10:29:03 -05:00
parent e70af1f84f
commit 6610e6e98a
1 changed files with 1 additions and 5 deletions

View File

@ -35,7 +35,7 @@
#include <switch.h>
#include <switch_event.h>
#define DISPATCH_QUEUE_LEN 5000
#define DISPATCH_QUEUE_LEN 10000
//#define DEBUG_DISPATCH_QUEUES
/*! \brief A node to store binded events */
@ -1397,11 +1397,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_fire_detailed(const char *file, con
for (;;) {
for (index = (*event)->priority; index < 3; index++) {
int was = (*event)->priority;
if (switch_queue_trypush(EVENT_QUEUE[index], *event) == SWITCH_STATUS_SUCCESS) {
if (index != was) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "queued event at a lower priority %d/%d!\n", index, was);
}
goto end;
}
}