tweak
This commit is contained in:
parent
e70af1f84f
commit
6610e6e98a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue