diff options
author | Roger Dingledine <arma@torproject.org> | 2008-02-19 19:48:07 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-02-19 19:48:07 +0000 |
commit | d61835a4ba541660fffa0123b5b2a47ce3cdd4a1 (patch) | |
tree | f7e04b6b040d28ac8bef19a45eb332e985999a95 | |
parent | f4dc006fb55a9c586869eb5dc5a550fe207ec7ee (diff) | |
download | tor-d61835a4ba541660fffa0123b5b2a47ce3cdd4a1.tar.gz tor-d61835a4ba541660fffa0123b5b2a47ce3cdd4a1.zip |
clean up the socket counting thing. third time's a charm.
svn:r13581
-rw-r--r-- | src/common/compat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 40085a3993..018600e251 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -525,7 +525,9 @@ tor_close_socket(int s) #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; } |