Browse Source

hunt for killerchicken's socket counting problem

svn:r13578
Roger Dingledine 17 years ago
parent
commit
ab4d3888e4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/common/compat.c

+ 1 - 0
src/common/compat.c

@@ -509,6 +509,7 @@ tor_close_socket(int s)
 #else
   close(s);
 #endif
+  tor_assert(n_sockets_open > 0);
   --n_sockets_open;
 }