Skip to content

Commit 8d36b5c

Browse files
committed
Do not del libev IO wrappers while thread is still running
fixes an issue where the runtime would occasionally segfault when exiting without cluster shutdown. This is because the IO object was deacllocated while the thread was running and might still enter the IO callback.
1 parent 341e631 commit 8d36b5c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

cassandra/io/libevreactor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,8 @@ def _cleanup(self):
123123
conn.close()
124124
if conn._write_watcher:
125125
conn._write_watcher.stop()
126-
del conn._write_watcher
127126
if conn._read_watcher:
128127
conn._read_watcher.stop()
129-
del conn._read_watcher
130128

131129
self.notify() # wake the timer watcher
132130
log.debug("Waiting for event loop thread to join...")

0 commit comments

Comments
 (0)