From 20c211661bf3870ff253a2877987c22f276b8519 Mon Sep 17 00:00:00 2001 From: Andrea Guzzo Date: Fri, 11 Apr 2014 11:35:33 +0200 Subject: [PATCH] iomux_run_timeouts() can be run after the mutex has been released --- src/iomux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iomux.c b/src/iomux.c index 174eac7..6954517 100644 --- a/src/iomux.c +++ b/src/iomux.c @@ -1052,8 +1052,8 @@ iomux_run(iomux_t *iomux, struct timeval *tv_default) } } } - iomux_run_timeouts(iomux); MUTEX_UNLOCK(iomux); + iomux_run_timeouts(iomux); } #else @@ -1167,8 +1167,8 @@ iomux_run(iomux_t *iomux, struct timeval *tv_default) } } - iomux_run_timeouts(iomux); MUTEX_UNLOCK(iomux); + iomux_run_timeouts(iomux); } #endif