disconnect when flush fails

This commit is contained in:
Jeff Hill
2001-01-16 17:09:30 +00:00
parent bf7b7c7aa9
commit 12075c3274

View File

@@ -513,6 +513,19 @@ void casStreamOS::sendCB()
}
}
else if (flushCond==outBuf::flushDisconnect) {
//
// ok to delete the client here
// because casStreamWriteReg::callBack()
// is called by the fdManager system
// and therefore we are not being
// called from a client member function
// higher up on the stack
//
this->destroy();
//
// must _not_ touch "this" pointer
// after the destroy
//
return;
}