commit 92fb4974b1f908d1190350bd6638c6cc156af086
parent 39ffa047ca9e255a1dba7079a7172de85c4fba5d
Author: Joris Vink <joris@coders.se>
Date: Wed, 27 Mar 2019 22:15:35 +0100
only deschedule if not -1.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/python.c b/src/python.c
@@ -1773,7 +1773,7 @@ pysocket_alloc(void)
static void
pysocket_dealloc(struct pysocket *sock)
{
- if (sock->scheduled && sock->fd == -1) {
+ if (sock->scheduled && sock->fd != -1) {
kore_platform_disable_read(sock->fd);
#if !defined(__linux__)
kore_platform_disable_write(sock->fd);