version 2.14, 1997/02/11 23:15:20
|
version 2.15, 1997/12/16 21:09:07
|
Line 218 PUBLIC BOOL HTChannel_delete (HTChannel
|
Line 218 PUBLIC BOOL HTChannel_delete (HTChannel
|
*/ |
*/ |
if (status != HT_IGNORE) { |
if (status != HT_IGNORE) { |
if (channel->input) { |
if (channel->input) { |
if (status == HT_INTERRUPTED) |
if (status == HT_INTERRUPTED) |
(*channel->input->isa->abort)(channel->input, NULL); |
(*channel->input->isa->abort)(channel->input, NULL); |
else |
else |
(*channel->input->isa->_free)(channel->input); |
(*channel->input->isa->_free)(channel->input); |
Line 236 PUBLIC BOOL HTChannel_delete (HTChannel
|
Line 236 PUBLIC BOOL HTChannel_delete (HTChannel
|
** delete it and free memory. |
** delete it and free memory. |
*/ |
*/ |
if (channel->semaphore <= 0 && channels && channel->sockfd != INVSOC) { |
if (channel->semaphore <= 0 && channels && channel->sockfd != INVSOC) { |
int hash = HASH(channel->sockfd); |
int hash = HASH(channel->sockfd); |
HTList * list = channels[hash]; |
HTList * list = channels[hash]; |
if (list) { |
if (list) { |
HTList_removeObject(list, (void *) channel); |
HTList_removeObject(list, (void *) channel); |