summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2007-11-02 20:21:33 +0000
committerroot <root>2007-11-02 20:21:33 +0000
commit338036c31a5f2290ed99ef7e27f1bc450f8487bd (patch)
tree6968dd558ef6879a17ba696806dc0412eae51072
parent78ab61dd9808cafa50b5bc8c37e49345237c35fe (diff)
*** empty log message ***
-rw-r--r--ev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 23507bd..a9864a7 100644
--- a/ev.c
+++ b/ev.c
@@ -860,6 +860,9 @@ ev_clear_pending (W w)
static void
ev_start (W w, int active)
{
+ if (w->priority < EV_MINPRI) w->priority = EV_MINPRI;
+ if (w->priority > EV_MAXPRI) w->priority = EV_MAXPRI;
+
w->active = active;
}