From dd9b729f5ecd666bad6953c93a699b0067d04cce Mon Sep 17 00:00:00 2001
From: Anthony Minessale <anthm@freeswitch.org>
Date: Sun, 9 Feb 2014 04:23:01 +0500
Subject: [PATCH] FS-5994 it looks like its microseconds

---
 src/switch_scheduler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/switch_scheduler.c b/src/switch_scheduler.c
index e41a6b4f57..de21c445b7 100644
--- a/src/switch_scheduler.c
+++ b/src/switch_scheduler.c
@@ -185,7 +185,7 @@ static void *SWITCH_THREAD_FUNC switch_scheduler_task_thread(switch_thread_t *th
 		if (task_thread_loop(0)) {
 			break;
 		}
-		if (switch_queue_pop_timeout(globals.event_queue, &pop, 500) == SWITCH_STATUS_SUCCESS) {
+		if (switch_queue_pop_timeout(globals.event_queue, &pop, 500000) == SWITCH_STATUS_SUCCESS) {
 			switch_event_t *event = (switch_event_t *) pop;
 			switch_event_fire(&event);
 		}