removed problematic assertion

git-svn-id: svn://10.0.0.236/trunk@17574 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-01-12 08:46:02 +00:00
parent 8a6027fba4
commit e6c9ca3a33
2 changed files with 6 additions and 4 deletions

View File

@@ -45,7 +45,6 @@ static NS_DEFINE_IID(kIStreamListenerIID, NS_ISTREAMLISTENER_IID);
static const char* kNullURL = "Error: Null URL given";
static const char* kOnStartNotCalled = "Error: OnStartBinding() must be called before OnDataAvailable()";
static const char* kOnStopNotCalled = "Error: OnStopBinding() must be called upon termination of netlib process";
static const char* kBadListenerInit = "Error: Parser's IStreamListener API was not setup correctly in constructor.";
static nsString kUnknownFilename("unknown");
static nsString kEmptyString("unknown");
@@ -160,7 +159,9 @@ nsParser::nsParser() : mCommand("") {
* @return
*/
nsParser::~nsParser() {
NS_POSTCONDITION(eOnStop==mParserContext->mStreamListenerState,kOnStopNotCalled);
if(eOnStop!=mParserContext->mStreamListenerState) {
NS_WARNING("OnStop may not have been called");
}
NS_IF_RELEASE(mObserver);
NS_RELEASE(mSink);