[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r13581: clean up the socket counting thing. third time's a charm. (tor/trunk/src/common)
Author: arma
Date: 2008-02-19 14:48:07 -0500 (Tue, 19 Feb 2008)
New Revision: 13581
Modified:
tor/trunk/src/common/compat.c
Log:
clean up the socket counting thing. third time's a charm.
Modified: tor/trunk/src/common/compat.c
===================================================================
--- tor/trunk/src/common/compat.c 2008-02-19 19:30:41 UTC (rev 13580)
+++ tor/trunk/src/common/compat.c 2008-02-19 19:48:07 UTC (rev 13581)
@@ -525,7 +525,9 @@
#endif
r = -1;
}
- tor_assert(n_sockets_open > 0);
+ if (n_sockets_open < 0)
+ log_warn(LD_BUG, "Our socket count is below zero: %d. Please submit a "
+ "bug report.", n_sockets_open);
return r;
}