Crash fix part 2

This commit is contained in:
Jan Vidar Krey
2009-11-18 18:35:31 +01:00
parent f489e77602
commit e994f23ea0
2 changed files with 3 additions and 1 deletions

View File

@@ -101,6 +101,9 @@ static void net_con_event(int fd, short ev, void *arg)
struct net_connection* con = (struct net_connection*) arg;
int events = net_con_convert_from_libevent_mask(ev);
if (!con->flags)
return;
if (net_con_flag_get(con, NET_CLEANUP))
{
hub_free(con);