tevent: fix the nesting logic
authorStefan Metzmacher <metze@samba.org>
Thu, 19 Mar 2009 13:31:43 +0000 (14:31 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 19 Mar 2009 13:39:22 +0000 (14:39 +0100)
commit36e7045340bbc7d6567008bdd87c4cdf717835bd
treefda7704e8912aea06a932c37838813f0a24b26ed
parent88dd6af605dc5754b7e146a068272d37651da710
tevent: fix the nesting logic

Only tevent_loop_once and tevent_loop_until() should care
about the nesting level.

This fixes the samba3 printing code where we use tevent_loop_wait()
and don't allow nested events.

We still call the nesting hook for all levels, we need to decide
if we really want this...

metze
lib/tevent/tevent.c