[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r21399 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r21399 - gnunet/src/util |
Date: |
Wed, 9 May 2012 23:40:38 +0200 |
Author: grothoff
Date: 2012-05-09 23:40:38 +0200 (Wed, 09 May 2012)
New Revision: 21399
Modified:
gnunet/src/util/server.c
Log:
-less crack smoking required: finding pos==client in DLL is pretty useless
now...
Modified: gnunet/src/util/server.c
===================================================================
--- gnunet/src/util/server.c 2012-05-09 21:35:21 UTC (rev 21398)
+++ gnunet/src/util/server.c 2012-05-09 21:40:38 UTC (rev 21399)
@@ -1294,7 +1294,6 @@
GNUNET_SERVER_client_disconnect (struct GNUNET_SERVER_Client *client)
{
struct GNUNET_SERVER_Handle *server = client->server;
- struct GNUNET_SERVER_Client *pos;
struct NotifyList *n;
LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -1320,13 +1319,9 @@
(NULL != server) )
{
client->shutdown_now = GNUNET_YES;
- pos = server->clients_head;
- while ((NULL != pos) && (pos != client))
- pos = pos->next;
- GNUNET_assert (NULL != pos);
GNUNET_CONTAINER_DLL_remove (server->clients_head,
server->clients_tail,
- pos);
+ client);
if (GNUNET_SCHEDULER_NO_TASK != client->restart_task)
{
GNUNET_SCHEDULER_cancel (client->restart_task);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r21399 - gnunet/src/util,
gnunet <=