Ver Fonte

svn: 1487

Bryan Drewery há 21 anos atrás
pai
commit
85370c11f5
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/net.c

+ 1 - 1
src/net.c

@@ -453,7 +453,6 @@ void real_killsock(register int sock, const char *file, int line)
     return;
     return;
   }
   }
 
 
-  sdprintf("killsock(%d, %s, %d)", sock, file, line);
   for (register int i = 0; i < MAXSOCKS; i++) {
   for (register int i = 0; i < MAXSOCKS; i++) {
     if ((socklist[i].sock == sock) && !(socklist[i].flags & SOCK_UNUSED)) {
     if ((socklist[i].sock == sock) && !(socklist[i].flags & SOCK_UNUSED)) {
 #ifdef HAVE_SSL
 #ifdef HAVE_SSL
@@ -474,6 +473,7 @@ void real_killsock(register int sock, const char *file, int line)
       egg_bzero(&socklist[i], sizeof(socklist[i]));
       egg_bzero(&socklist[i], sizeof(socklist[i]));
       socklist[i].flags = SOCK_UNUSED;
       socklist[i].flags = SOCK_UNUSED;
       socks_total--;
       socks_total--;
+      sdprintf("killsock(%d, %s, %d) (socklist: %d)", sock, file, line, i);
       return;
       return;
     }
     }
   }
   }