Don't Close TCP Connection/Server on destruction.

If the connection is open when the destructor is called it's a bug! Don't
want to try to compensate for bugs.
This commit is contained in:
Ryan
2009-08-21 14:47:33 +02:00
parent 048a1b8b9e
commit f7f11352b7
2 changed files with 1 additions and 2 deletions

View File

@@ -117,7 +117,6 @@ Connection::~Connection ()
{
assert(stream_.recvfd < 0 && "garbage collecting open Connection");
assert(stream_.sendfd < 0 && "garbage collecting open Connection");
ForceClose();
}
Handle<Value>

View File

@@ -139,7 +139,7 @@ protected:
}
virtual ~Server () {
evcom_server_close (&server_);
assert(server_.fd >= 0);
}
int Listen (struct sockaddr *address, int backlog) {