Skip to content

Commit

Permalink
iomux_run_timeouts() can be run after the mutex has been released
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Guzzo committed Apr 11, 2014
1 parent 8ebccbc commit 20c2116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iomux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 20c2116

Please sign in to comment.