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:
parent
2dd66586ff
commit
4cc9e216bb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user