Crash fix?

This commit is contained in:
Jan Vidar Krey 2009-11-18 18:27:31 +01:00
parent 2526c8a9ed
commit f489e77602
1 changed files with 6 additions and 0 deletions

View File

@ -101,6 +101,12 @@ static void net_con_event(int fd, short ev, void *arg)
struct net_connection* con = (struct net_connection*) arg; struct net_connection* con = (struct net_connection*) arg;
int events = net_con_convert_from_libevent_mask(ev); int events = net_con_convert_from_libevent_mask(ev);
if (net_con_flag_get(con, NET_CLEANUP))
{
hub_free(con);
return;
}
net_con_flag_set(con, NET_PROCESSING_BUSY); net_con_flag_set(con, NET_PROCESSING_BUSY);
// uhub_assert(net_con_flag_get(con, NET_EVENT_SET) != 0); // uhub_assert(net_con_flag_get(con, NET_EVENT_SET) != 0);