Fix problems with write events not being processed due to a read event taking presendence.

Conflicts:

	src/core/netevent.c
This commit is contained in:
Jan Vidar Krey 2009-11-18 17:40:23 +01:00
parent 066b3f5243
commit eb7bec585e
2 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ void net_event(struct net_connection* con, int event, void *arg)
}
}
if (event & NET_EVENT_WRITE)
if (!flag_close && event & NET_EVENT_WRITE)
{
flag_close = handle_net_write(user);
if (flag_close)

View File

@ -96,7 +96,7 @@ static void probe_net_event(struct net_connection* con, int events, void *arg)
net_con_ssl_handshake(con, NET_CON_SSL_MODE_SERVER);
return;
}
#endif
#endifq
probe_destroy(probe);
return;
}