+void clear_whoqueue(struct ClientSocket *client) {
+ if(!client->whoqueue_first) return;
+ SYNCHRONIZE(cache_sync);
+ struct WHOQueueEntry *entry, *next;
+ for(entry = client->whoqueue_first; entry; entry = next) {
+ next = entry->next;
+ free(entry);
+ }
+ client->whoqueue_last = NULL;
+ client->whoqueue_first = NULL;
+ DESYNCHRONIZE(cache_sync);
+}
+