1
0
mirror of https://git.kore.io/kore.git synced 2024-11-18 16:08:29 +01:00

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

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);