From b2c251cca0a3e7ff597566d1f1ca40cef5d2f4f7 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 22 Oct 2008 00:25:14 +1300 Subject: [PATCH] Bug 2492: assertion failed: Server.cc:70: "!requestBodySource" Paranoid: check that swanSong has been called Extra paranoia: run before exiting swanSong. I really mean it. They MUST pass here. --- src/Server.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Server.cc b/src/Server.cc index 606b6881e8..12b00a51f6 100644 --- a/src/Server.cc +++ b/src/Server.cc @@ -103,6 +103,14 @@ ServerStateData::swanSong() Initiator::swanSong(); BodyProducer::swanSong(); #endif + + // paranoid: check that swanSong has been called + // extra paranoid: yeah, I really mean it. they MUST pass here. + assert(!requestBodySource); +#if USE_ADAPTATION + assert(!virginBodyDestination); + assert(!adaptedBodySource); +#endif } -- 2.47.3