Started using the new connection abstraction.

This commit is contained in:
Jan Vidar Krey
2009-08-02 21:46:57 +02:00
parent 653cfb285e
commit cfb8a9f322
6 changed files with 14 additions and 31 deletions

View File

@@ -46,6 +46,7 @@ void net_con_close(struct net_connection* con)
if (!event_pending(&con->event, EV_READ | EV_WRITE, 0))
return;
event_del(&con->event);
net_close(con->sd);
con->sd = -1;
}