Removed obsolete code.
The read and write buffers are now emptied in dcb_final_free, so no need to do it explicitly here.
This commit is contained in:
parent
3b19acd1de
commit
6a318836fb
@ -383,16 +383,6 @@ int n_connect = 0;
|
||||
static int
|
||||
httpd_close(DCB *dcb)
|
||||
{
|
||||
if(dcb->dcb_readqueue)
|
||||
{
|
||||
while((dcb->dcb_readqueue = GWBUF_CONSUME_ALL(dcb->dcb_readqueue)));
|
||||
}
|
||||
|
||||
if(dcb->writeq)
|
||||
{
|
||||
while((dcb->writeq = GWBUF_CONSUME_ALL(dcb->writeq)));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user