# HG changeset patch # User Nathan Phillip Brink # Date 2010-07-31 00:56:13 # Node ID f6e991030a7034ef99352e4cba32e27900d29bf0 # Parent c5f38b0ee75127e176acb95740b9e3b10d49d727 tabletennis_del_client() actually deletes the client if it's not at the front of one of the PING or PONG queues (fixing a segfault). diff --git a/src/server/tabletennis.c b/src/server/tabletennis.c --- a/src/server/tabletennis.c +++ b/src/server/tabletennis.c @@ -171,7 +171,7 @@ int tabletennis_del_client(tabletennis_t return 0; list_traverse(thelist, (void *)client, (list_traverse_func_t)&tabletennis_del_client_traverse, - LIST_FORW | LIST_FRNT | LIST_SAVE); + LIST_FORW | LIST_FRNT | LIST_ALTR); if(list_curr(thelist) == client) list_remove_curr(thelist);