From a68a38fa226bb401447d5ae36ed1c063c8f050ae Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Mon, 4 Nov 2019 14:20:53 -0800 Subject: [PATCH] Don't delete context from python side only --- messaging/messaging_pyx.pyx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/messaging/messaging_pyx.pyx b/messaging/messaging_pyx.pyx index a4ac5172b04ae7..ff55c310750fd1 100644 --- a/messaging/messaging_pyx.pyx +++ b/messaging/messaging_pyx.pyx @@ -18,7 +18,10 @@ cdef class Context: self.context = cppContext.create() def __dealloc__(self): - del self.context + pass + # Deleting the context will hang if sockets are still active + # TODO: Figure out a way to make sure the context is closed last + # del self.context cdef class Poller: