Added lots of new asserts which should trigger in case we double delete a ADC message.

This commit is contained in:
Jan Vidar Krey
2010-02-15 19:03:19 +01:00
parent 1ce258bccf
commit 29c162727c
4 changed files with 17 additions and 56 deletions

View File

@@ -106,6 +106,8 @@ int route_to_user(struct hub_info* hub, struct hub_user* user, struct adc_messag
if (!user->connection)
return 0;
assert(msg->cache && *msg->cache);
if (hub_sendq_is_empty(user->send_queue) && !user_flag_get(user, flag_pipeline))
{
/* Perform oportunistic write */