Fix send queue issue.

This commit is contained in:
Jan Vidar Krey 2009-05-28 23:44:28 +02:00
parent b1ab64242e
commit 507f429035

View File

@ -103,17 +103,10 @@ int route_to_user(struct hub_info* hub, struct user* user, struct adc_message* m
free(data); free(data);
#endif #endif
int empty = hub_sendq_is_empty(user->net.send_queue);
hub_sendq_add(user->net.send_queue, msg); hub_sendq_add(user->net.send_queue, msg);
if (empty) /* FIXME: try oportunistic write? */
{
// try oportunistic write
}
else
{
user_net_io_want_write(user); user_net_io_want_write(user);
}
return 1; return 1;
} }