extend deletion functions in LL.c, use them to make "bye" client command work

This commit is contained in:
marschap
2008-11-30 15:30:28 +00:00
parent a197581bd3
commit dcc643ec18
13 changed files with 79 additions and 51 deletions
+5
View File
@@ -229,6 +229,11 @@ parse_all_client_messages(void)
for (str = client_get_message(c); str != NULL; str = client_get_message(c)) {
parse_message(str, c);
free(str);
if (c->state == GONE) {
sock_destroy_client_socket(c);
break;
}
}
}
return 0;