summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorChristopher Davis <chrisd@torproject.org>2010-09-08 20:33:21 -0700
committerChristopher Davis <chrisd@torproject.org>2010-09-08 20:33:21 -0700
commit71b680142120293fb730ac34576c80f63541cd63 (patch)
tree2e460facf106b83b00a579d0ff6c3854ec38f311 /event.c
parent3ec65d6984833310ec125a91c88ef8f7654464f4 (diff)
downloadlibevent-71b680142120293fb730ac34576c80f63541cd63.tar.gz
Don't decrement virutal event count twice in connect_complete.
Diffstat (limited to 'event.c')
-rw-r--r--event.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/event.c b/event.c
index 7ecbfc1e..720e8aeb 100644
--- a/event.c
+++ b/event.c
@@ -2767,6 +2767,7 @@ void
event_base_del_virtual(struct event_base *base)
{
EVBASE_ACQUIRE_LOCK(base, th_base_lock);
+ EVUTIL_ASSERT(base->virtual_event_count > 0);
base->virtual_event_count--;
EVBASE_RELEASE_LOCK(base, th_base_lock);
}