Don't call close() on the python socket on dealloc

This commit is contained in:
Joris Vink 2018-11-06 16:54:26 +01:00
parent 2dd66586ff
commit 4cc9e216bb
1 changed files with 0 additions and 1 deletions

View File

@ -1499,7 +1499,6 @@ static void
pysocket_dealloc(struct pysocket *sock)
{
if (sock->socket != NULL) {
(void)PyObject_CallMethod(sock->socket, "close", NULL);
Py_DECREF(sock->socket);
} else if (sock->fd != -1) {
(void)close(sock->fd);