- i=network_close(&(ivac->net),channel);
- if(i==N_E_NC)
- sprintf(c_str,"channel %02d: no active connection",channel);
- else
+ if(ivac->net.connection[channel].status&C_ESTABL) {
+ ivac_send_quit(channel,ivac);
+ event_math(ivac->net.connection[channel].fd,&(ivac->event),
+ READ,REMOVE);
+ network_close(&(ivac->net),channel);